PHP Class Backend\Core\Engine\Base\Cronjob

Inheritance: extends Object
显示文件 Open project: forkcms/forkcms Class Usage Examples

Protected Properties

Property Type Description
$id integer The current id

Public Methods

Method Description
execute ( )
getId ( ) : integer Get the id
setAction ( string $action, string $module = null ) Set the action
setModule ( string $module ) Set the module

Protected Methods

Method Description
clearBusyFile ( ) Clear/removed the busy file
getCacheDirectory ( ) : string
setBusyFile ( ) Set the busy file

Method Details

clearBusyFile() protected method

Clear/removed the busy file
protected clearBusyFile ( )

execute() public method

public execute ( )

getCacheDirectory() protected method

protected getCacheDirectory ( ) : string
return string

getId() public method

Get the id
public getId ( ) : integer
return integer

setAction() public method

We can't rely on the parent setModule function, because a cronjob requires no login
public setAction ( string $action, string $module = null )
$action string The action to load.
$module string The module to load.

setBusyFile() protected method

Set the busy file
protected setBusyFile ( )

setModule() public method

We can't rely on the parent setModule function, because a cronjob requires no login
public setModule ( string $module )
$module string The module to load.

Property Details

$id protected_oe property

The current id
protected int $id
return integer