Static Public Member Functions |
| static | model ($className=__CLASS__) |
Static Protected Attributes |
| static | $logClass = "application.modules.job.models.Job" |
Detailed Description
Definition at line 3 of file Job.php.
Member Function Documentation
| Job::calculateNextPlannedTime |
( |
| ) |
|
Calculate next planned time
Definition at line 93 of file Job.php.
| Job::changeToRunningStatus |
( |
| ) |
|
|
protected |
Change job status to running
Definition at line 406 of file Job.php.
Execute job
Definition at line 211 of file Job.php.
Execute job asynchronous
- Returns
- boolean
Definition at line 202 of file Job.php.
Execute job directly
- Returns
- integer
Definition at line 191 of file Job.php.
| Job::extractErrorMessageFromFinishMessage |
( |
JobLog |
$log | ) |
|
|
private |
Extract error message from finish message
- Parameters
-
- Returns
- string
Definition at line 438 of file Job.php.
| Job::getFinishMessage |
( |
| ) |
|
Returns finish message
- Returns
- string
Definition at line 284 of file Job.php.
Returns job data
- Returns
- array
Definition at line 312 of file Job.php.
Returns job status id
- Returns
- integer
Definition at line 59 of file Job.php.
Log
- Returns
- array
Definition at line 303 of file Job.php.
| Job::instantiate |
( |
|
$attributes | ) |
|
|
protected |
| Job::isDuplicateOf |
( |
|
$job | ) |
|
Check job is duplicate
- Parameters
-
- Returns
- boolean
Definition at line 337 of file Job.php.
Log
- Parameters
-
Definition at line 294 of file Job.php.
Log result
Definition at line 415 of file Job.php.
| static Job::model |
( |
|
$className = __CLASS__ | ) |
|
|
static |
{Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!
- Parameters
-
| string | $className | active record class name. |
- Returns
- Jobs the static model class
}
Reimplemented from Jobs.
Definition at line 32 of file Job.php.
{
- Returns
- array validation rules for model attributes.
}
Reimplemented from Jobs.
Definition at line 40 of file Job.php.
Set job data
- Parameters
-
Definition at line 320 of file Job.php.
Start now
Definition at line 85 of file Job.php.
| Job::timestampToDatabaseDate |
( |
|
$timestamp = null | ) |
|
|
protected |
Convert timestamp to database date
- Parameters
-
- Returns
- string
Definition at line 355 of file Job.php.
Update job data
Definition at line 271 of file Job.php.
| Job::validateCrontab |
( |
|
$attribute, |
|
|
|
$params |
|
) |
| |
Validate crontab
Definition at line 67 of file Job.php.
Member Data Documentation
| Job::$__finishMessage = array() |
|
private |
| Job::$logClass = "application.modules.job.models.Job" |
|
staticprotected |
| Job::$rollbackOpenTransaction = true |
The documentation for this class was generated from the following file:
- app/protected/modules/job/models/Job.php