PHP 클래스 Recurr\Transformer\ArrayTransformer

If a recurrence rule is infinitely recurring, a virtual limit is imposed.
저자: Shaun Simmons ([email protected])
파일 보기 프로젝트 열기: simshaun/recurr 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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