\Chronos
Synopsis
class Chronos
extends Controller
{
- // members
- public static array $allowed_actions = ;
- protected static $config_dir = NULL;
- // methods
- public static void set_config_dir()
- public static void get_config_dir()
- public static void add()
- public static void remove()
- public static void replace()
- public static void build_conf_file()
- public static void action_file_name()
- public static String config_directory()
- public void execmethod()
- public static Array list_scheduled_actions()
- public void listRecentActions()
Hierarchy
Extends
- Controller
Tasks
Line | Task |
---|---|
99 | work out how to prevent web requests to execmethod() |
Members
protected
-
$config_dir
Config directory where files are written. If left null, a computed directory relative to the temporary directory is used.
public
- $allowed_actions
Methods
public
- action_file_name() — Generate a json file name. Creates a file name with randomisation, micro time and PID to ensure uniqueness.
- add() — Create a scheduled action or actions.
- build_conf_file()
- config_directory() — Return the directory where config files are stored.
- execmethod()
- get_config_dir()
- listRecentActions()
- list_scheduled_actions() — List the schedule. Goes through the files in the schedule and deserialises the files.
- remove() — Remove any scheduled action that has the the specified identifier. It may be more than one.
- replace() — Replace any scheduled actions with the old identifer with a new set of actions, optionally with a new identifier. If $newIdentifier is not supplied, the actions are added with $oldIdentifer.
- set_config_dir()