Bitcoin and Altcoin Wallets 6.3.1

Email_Queue_Task extends Task
in package

Cron task abstract class.

Concrete implementations of a task must extend this and implement run();

Applications can use $this->log() for logging.

Table of Contents

$name  : mixed
$priority  : mixed
$task_start_time  : mixed
$timeout  : mixed
$verbose  : mixed
$email_queue  : mixed
$start_memory  : mixed
$start_time  : mixed
__construct()  : mixed
Constructor hooks this task into the cron job action.
log()  : void
Cron task logging.
register()  : void
run()  : void
Do the task.
get_cron_interval()  : int



protected mixed $priority = 10

int The priority with which to attach to cron action.


protected mixed $task_start_time = 0

int Timestamp at which this task is starting execution.


protected mixed $timeout = DEFAULT_CRON_TASK_TIMEOUT

How many seconds this task is allowed to run. The task's run() method must respect this limit.


protected mixed $verbose = false

boolean Whether to write all log() output to debug log.


private static mixed $start_memory = 0

int Memory used at start of tasks batch execution, measured in bytes.


private static mixed $start_time = 0

int Timestamp at which tasks batch starts execution.



Constructor hooks this task into the cron job action.

public __construct() : mixed

Call this after your sub-class constructor. This way, any changes you make to $this->priority will have an effect. WARNING: If you forget to call parent::__construct();, your task will not run.

Return values


Cron task logging.

public final log(string $message[, bool $force = false ]) : void

Migration task is always logged.

$message : string

The string to log.

$force : bool = false

Whether to force log the string, even if no verbose logging is checked.

Return values


public final static register() : void
Return values


Do the task.

public run() : void

Concrete implementations must do the work here in chuncks. The max execution time, usually about 15 or 30 secs must be eenough for all the tasks. So be careful!

Return values


private static get_cron_interval() : int
Return values

Search results