Bitrix API

BeforeConstraint extends Constraint

Table of Contents

Methods

__construct()  : mixed
getBefore()  : DateTimeInterface
isInc()  : bool
stopsTransformer()  : bool
test()  : bool
Passes if $date is before $before

Methods

__construct()

public __construct(DateTimeInterface $before[, bool $inc = false ]) : mixed
Parameters
$before : DateTimeInterface
$inc : bool = false

Include date if it equals $before.

getBefore()

public getBefore() : DateTimeInterface
Return values
DateTimeInterface

stopsTransformer()

public stopsTransformer() : bool
Return values
bool

test()

Passes if $date is before $before

public test(DateTimeInterface $date) : bool
Parameters
$date : DateTimeInterface
Return values
bool

        
On this page

Search results