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(); } protected function housekeeping() { if ($this->housekeeping === null) { $this->housekeeping = new Housekeeping($this->db()); } return $this->housekeeping; } }