2 namespace wcf\acp\page
;
3 use wcf\data\cronjob\CronjobList
;
4 use wcf\page\SortablePage
;
7 * Shows information about configured cron jobs.
9 * @author Alexander Ebert
10 * @copyright 2001-2019 WoltLab GmbH
11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
12 * @package WoltLabSuite\Core\Acp\Page
14 * @property CronjobList $objectList
16 class CronjobListPage
extends SortablePage
{
20 public $activeMenuItem = 'wcf.acp.menu.link.cronjob.list';
25 public $neededPermissions = ['admin.management.canManageCronjob'];
30 public $defaultSortField = 'cronjobID';
35 public $itemsPerPage = 100;
40 public $validSortFields = ['cronjobID', 'nextExec', 'startMinute', 'startHour', 'startDom', 'startMonth', 'startDow'];
45 public $objectListClassName = CronjobList
::class;
50 public function initObjectList() {
51 parent
::initObjectList();
53 $this->sqlOrderBy
= "cronjob.".$this->sortField
." ".$this->sortOrder
;