models\Crontab\Job\Expression
Expression model.
- Author: Bogdan Ghervan <bogdan.ghervan@gmail.com>
- Copyright: 2014 Bogdan Ghervan
- License: http://opensource.org/licenses/Apache-2.0 Apache License 2.0
Synopsis
class Expression
{
- // constants
- const MINUTE = 'minute';
- const HOUR = 'hour';
- const DAY_OF_MONTH = 'dayOfMonth';
- const MONTH = 'month';
- const DAY_OF_WEEK = 'dayOfWeek';
}
Tasks
Line |
Task |
+ |
Support "@reboot". |
Constants
Name |
Value |
MINUTE |
'minute' |
HOUR |
'hour' |
DAY_OF_MONTH |
'dayOfMonth' |
MONTH |
'month' |
DAY_OF_WEEK |
'dayOfWeek' |
Members
protected
- $_bounds
—
array
Minimum and maximum allowed value for every part of a cron expression.
- $_parts
—
array
The component parts of a cron expression.
- $_shorthands
—
array
Special time specification "nicknames".
- $_synonyms
—
array
Supported synonyms used by normalization and expression parsing.
Methods
protected
- _normalize()
— Normalizes given part value based on a dictionary of alternate values for that part.
- _renderPart()
— Renders given part.
public
- __call()
— Overloads method access.
- __toString()
— Returns string representation of this object.
- addPart()
— Appends $value to given $part.
- create()
— Parses expression given in literal form, builds an Expression object and returns it.
- render()
— Renders expression.
- setPart()
— Sets $value for $part. Any previous value of $part is lost.