PHP 클래스 Cron\Schedule\CrontabSchedule

저자: Dries De Peuter ([email protected])
상속: implements Cron\Schedule\ScheduleInterface
파일 보기 프로젝트 열기: cron/cron

공개 메소드들

메소드 설명
__construct ( null $pattern = null )
getPattern ( ) : string
setPattern ( string $pattern )
valid ( DateTime $now ) : boolean Validate if this pattern can run on the given date.

보호된 메소드들

메소드 설명
checkDay ( DateTime $now ) : boolean | null Check if the day matches.
checkDayOfWeek ( DateTime $now ) : boolean | null Check if the day of the week matches.
checkHour ( DateTime $now ) : boolean | null Check if the hour matches.
checkMinute ( DateTime $now ) : boolean | null Check if the minute matches.
checkMonth ( DateTime $now ) : boolean | null Check if the month matches.
checkPart ( string $partName, integer $min, integer $max, array $formats, DateTime $now ) : boolean | null
parsePattern ( string $pattern ) : string[] Parse the pattern into a rule for every property.
parseRule ( string $rule, integer $min, integer $max ) : array Convert a rule to an array of all its values.

메소드 상세

__construct() 공개 메소드

public __construct ( null $pattern = null )
$pattern null

checkDay() 보호된 메소드

Check if the day matches.
protected checkDay ( DateTime $now ) : boolean | null
$now DateTime
리턴 boolean | null

checkDayOfWeek() 보호된 메소드

Check if the day of the week matches.
protected checkDayOfWeek ( DateTime $now ) : boolean | null
$now DateTime
리턴 boolean | null

checkHour() 보호된 메소드

Check if the hour matches.
protected checkHour ( DateTime $now ) : boolean | null
$now DateTime
리턴 boolean | null

checkMinute() 보호된 메소드

Check if the minute matches.
protected checkMinute ( DateTime $now ) : boolean | null
$now DateTime
리턴 boolean | null

checkMonth() 보호된 메소드

Check if the month matches.
protected checkMonth ( DateTime $now ) : boolean | null
$now DateTime
리턴 boolean | null

checkPart() 보호된 메소드

protected checkPart ( string $partName, integer $min, integer $max, array $formats, DateTime $now ) : boolean | null
$partName string
$min integer
$max integer
$formats array
$now DateTime
리턴 boolean | null

getPattern() 공개 메소드

public getPattern ( ) : string
리턴 string

parsePattern() 보호된 메소드

Parse the pattern into a rule for every property.
protected parsePattern ( string $pattern ) : string[]
$pattern string
리턴 string[]

parseRule() 보호된 메소드

Convert a rule to an array of all its values.
protected parseRule ( string $rule, integer $min, integer $max ) : array
$rule string
$min integer
$max integer
리턴 array

setPattern() 공개 메소드

public setPattern ( string $pattern )
$pattern string

valid() 공개 메소드

Validate if this pattern can run on the given date.
public valid ( DateTime $now ) : boolean
$now DateTime
리턴 boolean