Bitrix API

BetweenConstraint extends Constraint

Table of Contents

Methods

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

Methods

__construct()

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

Include date if it equals $after or $before.

getAfter()

public getAfter() : DateTimeInterface
Return values
DateTimeInterface

getBefore()

public getBefore() : DateTimeInterface
Return values
DateTimeInterface

stopsTransformer()

public stopsTransformer() : bool
Return values
bool

test()

Passes if $date is between $after and $before

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

        
On this page

Search results