Documentation

pm_Scheduler
in package

Manager of regular tasks for module.

Tags
since
11.0

Table of Contents

$EVERY_10_MIN  : mixed
$EVERY_5_MIN  : mixed
$EVERY_DAY  : mixed
$EVERY_HOUR  : mixed
$EVERY_MIN  : mixed
$EVERY_MONTH  : mixed
$EVERY_WEEK  : mixed
__construct()  : mixed
Create new manager of regular tasks
disableTask()  : mixed
Disable task
enableTask()  : mixed
Enable task
getInstance()  : pm_Scheduler
Get instance of pm_Scheduler
getTaskById()  : pm_Scheduler_Task
Return task by its id
listTasks()  : array<string|int, pm_Scheduler_Task>
List all tasks of current module
putTask()  : mixed
Update or add new task to scheduler
removeAllTasks()  : mixed
Remove all tasks of current module
removeTask()  : mixed
Remove task from scheduler
resetInstance()  : mixed
Reset the singleton instance

Properties

$EVERY_10_MIN

public static mixed $EVERY_10_MIN = ['0,9,19,29,39,49,59', '*', '*', '*', '*']

$EVERY_5_MIN

public static mixed $EVERY_5_MIN = ['0,4,9,14,19,24,29,34,39,44,49,54,59', '*', '*', '*', '*']

$EVERY_DAY

public static mixed $EVERY_DAY = ['0', '0', '*', '*', '*']

$EVERY_HOUR

public static mixed $EVERY_HOUR = ['0', '*', '*', '*', '*']

$EVERY_MIN

public static mixed $EVERY_MIN = ['*', '*', '*', '*', '*']

$EVERY_MONTH

public static mixed $EVERY_MONTH = ['0', '0', '1', '*', '*']

$EVERY_WEEK

public static mixed $EVERY_WEEK = ['0', '0', '*', '*', '0']

Methods

__construct()

Create new manager of regular tasks

public __construct() : mixed
Return values
mixed

removeAllTasks()

Remove all tasks of current module

public removeAllTasks() : mixed
Return values
mixed

resetInstance()

Reset the singleton instance

public static resetInstance() : mixed
Tags
since
11.5
Return values
mixed

Search results