<?php
namespace wcf\acp\page;
use wcf\data\devtools\project\DevtoolsProjectList;
-use wcf\page\AbstractPage;
-use wcf\system\WCF;
+use wcf\page\MultipleLinkPage;
/**
* Shows a list of devtools projects.
* @package WoltLabSuite\Core\Acp\Page
* @since 3.1
*/
-class DevtoolsProjectListPage extends AbstractPage {
+class DevtoolsProjectListPage extends MultipleLinkPage {
/**
* @inheritDoc
*/
/**
* @inheritDoc
*/
- public $neededModules = ['ENABLE_DEVELOPER_TOOLS'];
+ public $itemsPerPage = PHP_INT_MAX;
/**
* @inheritDoc
*/
- public $neededPermissions = ['admin.configuration.package.canInstallPackage'];
+ public $objectListClassName = DevtoolsProjectList::class;
/**
- * @var DevtoolsProjectList
+ * @inheritDoc
*/
- public $objectList;
+ public $neededModules = ['ENABLE_DEVELOPER_TOOLS'];
/**
* @inheritDoc
*/
- public function readData() {
- parent::readData();
-
- $this->objectList = new DevtoolsProjectList();
- $this->objectList->readObjects();
- }
+ public $neededPermissions = ['admin.configuration.package.canInstallPackage'];
/**
- * @inheritDoc
+ * @var DevtoolsProjectList
*/
- public function assignVariables() {
- parent::assignVariables();
-
- WCF::getTPL()->assign([
- 'objects' => $this->objectList
- ]);
- }
+ public $objectList;
}