Dotclear 2.24
|
Public Member Functions | |
__construct (dcMaintenance $maintenance) | |
perm () | |
blog () | |
code ($code) | |
ts () | |
expired () | |
id () | |
name () | |
description () | |
tab () | |
group () | |
ajax () | |
task () | |
step () | |
success () | |
error () | |
header () | |
content () | |
execute () | |
help () | |
Protected Member Functions | |
init () | |
log () | |
Protected Attributes | |
$maintenance | |
$code | |
$ts = 0 | |
$expired = 0 | |
$ajax = false | |
$blog = false | |
$perm = null | |
$id | |
$name | |
$description | |
$tab = 'maintenance' | |
$group = 'other' | |
$task | |
$step | |
$error | |
$success | |
__construct | ( | dcMaintenance | $maintenance | ) |
Constructor.
If your task required something on construct, use method init() to do it.
dcMaintenance | $maintenance | The maintenance |
References $maintenance, $ts, dcCore\app(), error(), init(), name(), perm(), success(), and ts().
|
protected |
Initialize task object.
Better to set translated messages here than to rewrite constructor.
Reimplemented in dcMaintenanceBuildtools, ieMaintenanceExportblog, ieMaintenanceExportfull, dcMaintenanceCache, dcMaintenanceCountcomments, dcMaintenanceCSP, dcMaintenanceIndexcomments, dcMaintenanceIndexposts, dcMaintenanceLogs, dcMaintenanceSynchpostsmeta, dcMaintenanceVacuum, dcMaintenanceZipmedia, and dcMaintenanceZiptheme.
Referenced by __construct().
perm | ( | ) |
Get task permission.
Return user permission required to run this task or null for super admin.
References $perm.
Referenced by __construct().
blog | ( | ) |
Get task scope. Is task limited to current blog.
References $blog.
Referenced by dcMaintenanceZipmedia\execute(), expired(), and ieMaintenanceExportblog\init().
code | ( | $code | ) |
Set $code for task having multiple steps.
integer | $code | Code used for task execution |
Referenced by code(), dcMaintenanceIndexcomments\execute(), dcMaintenanceIndexposts\execute(), dcMaintenanceSynchpostsmeta\execute(), dcMaintenanceIndexcomments\step(), dcMaintenanceIndexposts\step(), dcMaintenanceSynchpostsmeta\step(), dcMaintenanceIndexcomments\success(), dcMaintenanceIndexposts\success(), dcMaintenanceSynchpostsmeta\success(), dcMaintenanceIndexcomments\task(), dcMaintenanceIndexposts\task(), and dcMaintenanceSynchpostsmeta\task().
ts | ( | ) |
Get timestamp between maintenances.
References ts().
Referenced by __construct(), expired(), and ts().
expired | ( | ) |
id | ( | ) |
name | ( | ) |
Get task name.
References $name.
Referenced by __construct(), ieMaintenanceExportblog\init(), ieMaintenanceExportfull\init(), dcMaintenanceIndexcomments\init(), dcMaintenanceIndexposts\init(), dcMaintenanceSynchpostsmeta\init(), and dcMaintenanceVacuum\init().
description | ( | ) |
Get task description.
References $description.
Referenced by dcMaintenanceBuildtools\init(), dcMaintenanceCache\init(), dcMaintenanceCountcomments\init(), dcMaintenanceCSP\init(), dcMaintenanceIndexcomments\init(), dcMaintenanceIndexposts\init(), dcMaintenanceLogs\init(), dcMaintenanceSynchpostsmeta\init(), dcMaintenanceVacuum\init(), dcMaintenanceZipmedia\init(), and dcMaintenanceZiptheme\init().
tab | ( | ) |
group | ( | ) |
Get task group.
If task required a full tab, this must be returned null.
References $group.
ajax | ( | ) |
Use ajax
Is task use maintenance ajax script for steps process.
References $ajax.
task | ( | ) |
Get task message.
This message is used on form button.
Reimplemented in dcMaintenanceIndexcomments, dcMaintenanceIndexposts, and dcMaintenanceSynchpostsmeta.
References $task.
Referenced by dcMaintenanceBuildtools\init(), ieMaintenanceExportblog\init(), ieMaintenanceExportfull\init(), dcMaintenanceCache\init(), dcMaintenanceCountcomments\init(), dcMaintenanceCSP\init(), dcMaintenanceLogs\init(), dcMaintenanceVacuum\init(), dcMaintenanceZipmedia\init(), and dcMaintenanceZiptheme\init().
step | ( | ) |
Get step message.
This message is displayed during task step execution.
Reimplemented in ieMaintenanceExportblog, ieMaintenanceExportfull, dcMaintenanceIndexcomments, dcMaintenanceIndexposts, and dcMaintenanceSynchpostsmeta.
References $step.
success | ( | ) |
Get success message.
This message is displayed when task is accomplished.
Reimplemented in dcMaintenanceIndexcomments, dcMaintenanceIndexposts, and dcMaintenanceSynchpostsmeta.
References $success.
Referenced by __construct(), dcMaintenanceBuildtools\init(), dcMaintenanceCache\init(), dcMaintenanceCountcomments\init(), dcMaintenanceCSP\init(), dcMaintenanceLogs\init(), and dcMaintenanceVacuum\init().
error | ( | ) |
Get error message.
This message is displayed on error.
References $error.
Referenced by __construct(), ieMaintenanceExportblog\execute(), ieMaintenanceExportfull\execute(), dcMaintenanceBuildtools\init(), dcMaintenanceCache\init(), dcMaintenanceCountcomments\init(), dcMaintenanceCSP\init(), dcMaintenanceIndexcomments\init(), dcMaintenanceIndexposts\init(), dcMaintenanceLogs\init(), dcMaintenanceSynchpostsmeta\init(), and dcMaintenanceVacuum\init().
header | ( | ) |
Get header.
Headers required on maintenance page.
Referenced by dcMaintenanceZipmedia\execute(), and dcMaintenanceZiptheme\execute().
content | ( | ) |
Get content.
Content for full tab task.
execute | ( | ) |
Execute task.
Reimplemented in dcMaintenanceBuildtools, ieMaintenanceExportblog, ieMaintenanceExportfull, dcMaintenanceCache, dcMaintenanceCountcomments, dcMaintenanceCSP, dcMaintenanceIndexcomments, dcMaintenanceIndexposts, dcMaintenanceLogs, dcMaintenanceSynchpostsmeta, dcMaintenanceVacuum, dcMaintenanceZipmedia, and dcMaintenanceZiptheme.
|
protected |
Log task execution.
Sometimes we need to log task execution direct from task itself.
Referenced by dcMaintenanceZipmedia\execute(), dcMaintenanceZiptheme\execute(), ieMaintenanceExportblog\step(), and ieMaintenanceExportfull\step().
help | ( | ) |
Help function.
|
protected |
Referenced by __construct().
|
protected |
Referenced by __construct().
|
protected |
Referenced by description().
|
protected |
|
protected |