PHP 클래스 Phergie_Plugin_Cron, phergie

저자: Phergie Development Team ([email protected])
상속: extends Phergie_Plugin_Abstract
파일 보기 프로젝트 열기: phergie/phergie

보호된 프로퍼티들

프로퍼티 타입 설명
$callbacks array Array of all registered callbacks with delays and arguments

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
getCallbackString ( callback $callback ) : string | boolean Returns a human-readable representation of a callback for debugging purposes.

메소드 상세

getCallbackString() 보호된 메소드

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

onTick() 공개 메소드

Handles callback execution.
public onTick ( ) : void
리턴 void

registerCallback() 공개 메소드

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
리턴 void

프로퍼티 상세

$callbacks 보호되어 있는 프로퍼티

Array of all registered callbacks with delays and arguments
protected array $callbacks
리턴 array