PHP Class Phergie_Plugin_Cron, phergie

Author: Phergie Development Team ([email protected])
Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Protected Properties

Свойство Type Description
$callbacks array Array of all registered callbacks with delays and arguments

Méthodes publiques

Méthode Description
onTick ( ) : void Handles callback execution.
registerCallback ( callback $callback, integer $delay, array $arguments = [], boolean $repeat = false ) : void Registers a callback for execution sometime after a given delay relative to now.

Méthodes protégées

Méthode Description
getCallbackString ( callback $callback ) : string | boolean Returns a human-readable representation of a callback for debugging purposes.

Method Details

getCallbackString() protected méthode

Returns a human-readable representation of a callback for debugging purposes.
protected getCallbackString ( callback $callback ) : string | boolean
$callback callback Callback to analyze
Résultat string | boolean String representation of the callback or FALSE if the specified value is not a valid callback

onTick() public méthode

Handles callback execution.
public onTick ( ) : void
Résultat void

registerCallback() public méthode

Registers a callback for execution sometime after a given delay relative to now.
public registerCallback ( callback $callback, integer $delay, array $arguments = [], boolean $repeat = false ) : void
$callback callback Callback to be registered
$delay integer Delay in seconds from now when the callback will be executed
$arguments array Arguments to pass to the callback when it's executed
$repeat boolean TRUE to automatically re-register the callback for the same delay after it's executed, FALSE otherwise
Résultat void

Property Details

$callbacks protected_oe property

Array of all registered callbacks with delays and arguments
protected array $callbacks
Résultat array