Integrated evaluation notice for apps
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / acp / page / SitemapListPage.class.php
CommitLineData
d43dd49d 1<?php
308c880f 2declare(strict_types=1);
d43dd49d
JR
3namespace wcf\acp\page;
4use wcf\data\object\type\ObjectTypeCache;
5use wcf\page\AbstractPage;
6use wcf\system\WCF;
7
8/**
9 * Shows a list of sitemap object types.
10 *
11 * @author Joshua Ruesweg
c839bd49 12 * @copyright 2001-2018 WoltLab GmbH
d43dd49d
JR
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package WoltLabSuite\Core\Acp\page
15 * @since 3.1
16 */
17class SitemapListPage extends AbstractPage {
18 /**
19 * @inheritDoc
20 */
21 public $activeMenuItem = 'wcf.acp.menu.link.maintenance.sitemap';
22
23 /**
24 * @inheritDoc
25 */
26 public $neededPermissions = ['admin.management.canRebuildData'];
27
28 /**
29 * @var array<ObjectType>
30 */
31 public $sitemapObjectTypes = [];
32
33 /**
34 * @inheritDoc
35 */
36 public function readData() {
37 parent::readData();
38
39 $this->sitemapObjectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.sitemap.object');
40 }
41
42 /**
43 * @inheritDoc
44 */
45 public function assignVariables() {
46 parent::assignVariables();
47
48 WCF::getTPL()->assign([
49 'sitemapObjectTypes' => $this->sitemapObjectTypes
50 ]);
51 }
52}