mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-24 22:34:25 +02:00
HousekeepingJob: add description
This commit is contained in:
parent
ee041b5aac
commit
68d7f9098c
@ -4,6 +4,7 @@ namespace Icinga\Module\Director\Job;
|
||||
|
||||
use Icinga\Module\Director\Db\Housekeeping;
|
||||
use Icinga\Module\Director\Hook\JobHook;
|
||||
use Icinga\Module\Director\Web\Form\QuickForm;
|
||||
|
||||
class HousekeepingJob extends JobHook
|
||||
{
|
||||
@ -14,6 +15,14 @@ class HousekeepingJob extends JobHook
|
||||
$this->housekeeping()->runAllTasks();
|
||||
}
|
||||
|
||||
public static function getDescription(QuickForm $form)
|
||||
{
|
||||
return $form->translate(
|
||||
'The Housekeeping job provides various task that keep your Director'
|
||||
. ' database fast and clean'
|
||||
);
|
||||
}
|
||||
|
||||
public function isPending()
|
||||
{
|
||||
return $this->housekeeping()->hasPendingTasks();
|
||||
|
Loading…
x
Reference in New Issue
Block a user