Dotclear 2.24
|
Public Member Functions | |
__construct () | |
Tab methods | |
addTab (string $id, string $name, array $options=[]) | |
getTab (string $id) | |
getTabs () | |
Group methods | |
addGroup (string $id, string $name, array $options=[]) | |
getGroup (string $id) | |
getGroups () | |
Task methods | |
addTask ($task) | |
getTask (string $id) | |
getTasks () | |
getHeaders () | |
Log methods | |
setLog (string $id) | |
delLogs () | |
getLogs () | |
Protected Member Functions | |
init () | |
|
protected |
Initialize list of tabs and groups and tasks.
To register a tab or group or task, use behavior dcMaintenanceInit then a method of dcMaintenance like addTab('myTab', ...).
References dcCore\app().
Referenced by __construct().
addTab | ( | string | $id, |
string | $name, | ||
array | $options = [] |
||
) |
Adds a tab.
string | $id | The identifier |
string | $name | The name |
array | $options | The options |
Referenced by dcMaintenanceAdmin\dcMaintenanceInit().
getTab | ( | string | $id | ) |
Gets the tab.
string | $id | The identifier |
getTabs | ( | ) |
Gets the tabs.
addGroup | ( | string | $id, |
string | $name, | ||
array | $options = [] |
||
) |
Adds a group.
string | $id | The identifier |
string | $name | The name |
array | $options | The options |
getGroup | ( | string | $id | ) |
Gets the group.
string | $id | The identifier |
getGroups | ( | ) |
Gets the groups.
addTask | ( | $task | ) |
Adds a task.
mixed | $task | The task, Class name or object |
Referenced by dcBuildTools\maintenanceAdmin().
getTask | ( | string | $id | ) |
getTasks | ( | ) |
Gets the tasks.
getHeaders | ( | ) |
Gets the headers for plugin maintenance admin page.
setLog | ( | string | $id | ) |
Sets the log for a task.
string | $id | Task ID |
References dcCore\app(), getTask(), and dcLog\LOG_TABLE_NAME.
delLogs | ( | ) |
Delete all maintenance logs.
References dcCore\app().
getLogs | ( | ) |
Get logs
Return [ task id => [ timestamp of last execution, logged on current blog or not ] ]
References dcCore\app().
Referenced by __construct().