PHP Class Scalr_SchedulerTask

Inheritance: extends Scalr_Model
Show file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$accountId
$comments
$config
$envId
$id
$lastStartTime
$name
$restartEvery
$scriptId
$startTime
$status
$targetId
$targetServerIndex
$targetType
$timezone
$type

Protected Properties

Property Type Description
$dbMessageKeyNotFound
$dbPrimaryKey
$dbPropertyMap
$dbTableName

Public Methods

Method Description
execute ( $manual = false ) : boolean Executes the task
getTypeByName ( $name )
init ( $className = null ) : Scalr_SchedulerTask
isExecutedRecently ( ) : boolean Checks whether this task was executed recently
updateLastStartTime ( )

Method Details

execute() public method

Executes the task
public execute ( $manual = false ) : boolean
return boolean $manual optional Whether task is executed by manual

getTypeByName() public static method

public static getTypeByName ( $name )

init() public static method

public static init ( $className = null ) : Scalr_SchedulerTask
return Scalr_SchedulerTask

isExecutedRecently() public method

Checks whether this task was executed recently
public isExecutedRecently ( ) : boolean
return boolean Returns TRUE if either the task was executed less than 30 seconds ago or it has never been executed.

updateLastStartTime() public method

public updateLastStartTime ( )

Property Details

$accountId public property

public $accountId

$comments public property

public $comments

$config public property

public $config

$dbMessageKeyNotFound protected property

protected $dbMessageKeyNotFound

$dbPrimaryKey protected property

protected $dbPrimaryKey

$dbPropertyMap protected property

protected $dbPropertyMap

$dbTableName protected property

protected $dbTableName

$envId public property

public $envId

$id public property

public $id

$lastStartTime public property

public $lastStartTime

$name public property

public $name

$restartEvery public property

public $restartEvery

$scriptId public property

public $scriptId

$startTime public property

public $startTime

$status public property

public $status

$targetId public property

public $targetId

$targetServerIndex public property

public $targetServerIndex

$targetType public property

public $targetType

$timezone public property

public $timezone

$type public property

public $type