Add missing `license` element in `package.xsd`
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / acp / page / CronjobListPage.class.php
1 <?php
2 namespace wcf\acp\page;
3 use wcf\data\cronjob\CronjobList;
4 use wcf\page\SortablePage;
5
6 /**
7 * Shows information about configured cron jobs.
8 *
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
13 *
14 * @property CronjobList $objectList
15 */
16 class CronjobListPage extends SortablePage {
17 /**
18 * @inheritDoc
19 */
20 public $activeMenuItem = 'wcf.acp.menu.link.cronjob.list';
21
22 /**
23 * @inheritDoc
24 */
25 public $neededPermissions = ['admin.management.canManageCronjob'];
26
27 /**
28 * @inheritDoc
29 */
30 public $defaultSortField = 'cronjobID';
31
32 /**
33 * @inheritDoc
34 */
35 public $itemsPerPage = 100;
36
37 /**
38 * @inheritDoc
39 */
40 public $validSortFields = ['cronjobID', 'nextExec', 'startMinute', 'startHour', 'startDom', 'startMonth', 'startDow'];
41
42 /**
43 * @inheritDoc
44 */
45 public $objectListClassName = CronjobList::class;
46
47 /**
48 * @inheritDoc
49 */
50 public function initObjectList() {
51 parent::initObjectList();
52
53 $this->sqlOrderBy = "cronjob.".$this->sortField." ".$this->sortOrder;
54 }
55 }