PHP Класс Recurr\Transformer\ArrayTransformer

If a recurrence rule is infinitely recurring, a virtual limit is imposed.
Автор: Shaun Simmons ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config Recurr\Transformer\ArrayTransformerConfig
$leapBug boolean ..) does not account for leap years.

Открытые методы

Метод Описание
__construct ( Recurr\Transformer\ArrayTransformerConfig $config = null ) Construct a new ArrayTransformer
setConfig ( Recurr\Transformer\ArrayTransformerConfig $config )
transform ( Rule $rule, Recurr\Transformer\ConstraintInterface $constraint = null, boolean $countConstraintFailures = true ) : Recurr\RecurrenceCollection | Recurr\Recurrence[] Transform a Rule in to an array of \DateTimes

Защищенные методы

Метод Описание
handleExclusions ( array $exclusions, array $recurrences ) : Recurr\Recurrence[]
handleInclusions ( array $inclusions, array $recurrences ) : Recurr\Recurrence[]

Описание методов

__construct() публичный Метод

Construct a new ArrayTransformer
public __construct ( Recurr\Transformer\ArrayTransformerConfig $config = null )
$config Recurr\Transformer\ArrayTransformerConfig

handleExclusions() защищенный Метод

protected handleExclusions ( array $exclusions, array $recurrences ) : Recurr\Recurrence[]
$exclusions array
$recurrences array
Результат Recurr\Recurrence[]

handleInclusions() защищенный Метод

protected handleInclusions ( array $inclusions, array $recurrences ) : Recurr\Recurrence[]
$inclusions array
$recurrences array
Результат Recurr\Recurrence[]

setConfig() публичный Метод

public setConfig ( Recurr\Transformer\ArrayTransformerConfig $config )
$config Recurr\Transformer\ArrayTransformerConfig

transform() публичный Метод

Transform a Rule in to an array of \DateTimes
public transform ( Rule $rule, Recurr\Transformer\ConstraintInterface $constraint = null, boolean $countConstraintFailures = true ) : Recurr\RecurrenceCollection | Recurr\Recurrence[]
$rule Recurr\Rule the Rule object
$constraint Recurr\Transformer\ConstraintInterface Potential recurrences must pass the constraint, else they will not be included in the returned collection.
$countConstraintFailures boolean Whether recurrences that fail the constraint's test should count towards a rule's COUNT limit.
Результат Recurr\RecurrenceCollection | Recurr\Recurrence[]

Описание свойств

$config защищенное свойство

protected ArrayTransformerConfig,Recurr\Transformer $config
Результат Recurr\Transformer\ArrayTransformerConfig

$leapBug защищенное свойство

..) does not account for leap years.
protected bool $leapBug
Результат boolean