PHP Class Cron\Validator\CrontabValidator

Author: Dries De Peuter ([email protected])
Inheritance: implements Cron\Validator\ValidatorInterface
Datei anzeigen Open project: cron/cron Class Usage Examples

Public Methods

Method Description
validate ( $pattern )

Protected Methods

Method Description
findReplacements ( string $pattern ) : string Translate known shorthands to basic cron syntax.

Private Methods

Method Description
buildPattern ( string $rangeRegex ) : string

Method Details

findReplacements() protected method

Translate known shorthands to basic cron syntax.
protected findReplacements ( string $pattern ) : string
$pattern string
return string

validate() public method

public validate ( $pattern )