Commit | Line | Data |
---|---|---|
668cf125 AE |
1 | <?php |
2 | namespace wcf\acp\page; | |
b8c711fb | 3 | use wcf\data\application\ViewableApplicationList; |
124dcf73 | 4 | use wcf\data\page\PageList; |
668cf125 | 5 | use wcf\page\AbstractPage; |
668cf125 AE |
6 | use wcf\system\WCF; |
7 | ||
8 | /** | |
9 | * Shows the application management page. | |
10 | * | |
11 | * @author Alexander Ebert | |
c839bd49 | 12 | * @copyright 2001-2018 WoltLab GmbH |
668cf125 | 13 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
e71525e4 | 14 | * @package WoltLabSuite\Core\Acp\Page |
668cf125 AE |
15 | */ |
16 | class ApplicationManagementPage extends AbstractPage { | |
264c6eea | 17 | /** |
0fcfe5f6 | 18 | * @inheritDoc |
264c6eea MS |
19 | */ |
20 | public $activeMenuItem = 'wcf.acp.menu.link.application.management'; | |
21 | ||
668cf125 | 22 | /** |
81662a51 | 23 | * list of applications |
4e25add7 | 24 | * @var ViewableApplicationList |
668cf125 | 25 | */ |
81662a51 | 26 | public $applicationList = null; |
668cf125 | 27 | |
e5ec4217 | 28 | /** |
0fcfe5f6 | 29 | * @inheritDoc |
e5ec4217 | 30 | */ |
058cbd6a | 31 | public $neededPermissions = ['admin.configuration.canManageApplication']; |
e5ec4217 | 32 | |
668cf125 | 33 | /** |
0fcfe5f6 | 34 | * @inheritDoc |
668cf125 AE |
35 | */ |
36 | public function readData() { | |
37 | parent::readData(); | |
38 | ||
81662a51 | 39 | $this->applicationList = new ViewableApplicationList(); |
81662a51 | 40 | $this->applicationList->readObjects(); |
668cf125 AE |
41 | } |
42 | ||
43 | /** | |
0fcfe5f6 | 44 | * @inheritDoc |
668cf125 AE |
45 | */ |
46 | public function assignVariables() { | |
47 | parent::assignVariables(); | |
48 | ||
124dcf73 AE |
49 | $pageList = new PageList(); |
50 | $pageList->readObjects(); | |
51 | ||
058cbd6a | 52 | WCF::getTPL()->assign([ |
124dcf73 AE |
53 | 'applicationList' => $this->applicationList, |
54 | 'pageList' => $pageList->getObjects() | |
058cbd6a | 55 | ]); |
668cf125 | 56 | } |
668cf125 | 57 | } |