models\Crontab\Job
Job 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 Job
{
- // members
- protected $_originalRaw;
- protected $_raw;
- protected string|Expression $_expression;
- protected $_command;
- protected $_isPaused;
- protected $_comment;
- protected $_hash;
- protected string $_lineSeparator = PHP_EOL;
- // methods
- public Job setRaw()
- public Job setExpression()
- public Job setCommand()
- public Job setComment()
- public Job setIsPaused()
- public string getOriginalRaw()
- public string getRaw()
- public string getExpression()
- public string getCommand()
- public string getIsPaused()
- public string getComment()
- public string getHash()
- protected string _updateRaw()
- protected Job _generateHash()
Tasks
Line | Task |
---|---|
79+ | Find another way to keep original data and changed data |
Members
protected
- $_command — string
- $_comment — string
- $_expression — models\Crontab\string|Expression
- $_hash — string
- $_isPaused — boolean
- $_lineSeparator
—
string
Default line separator. - $_originalRaw — string
- $_raw — string
Methods
protected
- _generateHash() — Generates unique hash for this job using crc32.
- _updateRaw() — Rebuilds internal raw job representation from parts and returns it.
public
- getCommand() — Retrieves command part.
- getComment() — Retrieves comment.
- getExpression() — Retrieves expression part.
- getHash() — Retrieves crc32 generated hash unique to this job.
- getIsPaused() — Retrieves job schedule status (paused or ready to run).
- getOriginalRaw() — Retrieves initial raw job representation.
- getRaw() — Retrieves raw job representation.
- setCommand() — Sets command part.
- setComment() — Sets comment.
- setExpression() — Sets expression part.
- setIsPaused() — Sets job schedule status (paused or ready to run).
- setRaw() — Sets raw job representation.