use wcf\data\package\Package;
use wcf\data\style\StyleAction;
use wcf\data\template\group\TemplateGroupList;
+use wcf\form\AbstractForm;
use wcf\system\event\EventHandler;
use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
* @subpackage acp.form
* @category Community Framework
*/
-class StyleAddForm extends ACPForm {
+class StyleAddForm extends AbstractForm {
/**
- * @see wcf\acp\form\ACPForm::$activeMenuItem
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
public $activeMenuItem = 'wcf.acp.menu.link.style.add';
*/
class StyleEditForm extends StyleAddForm {
/**
- * @see wcf\acp\form\ACPForm::$activeMenuItem
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
public $activeMenuItem = 'wcf.acp.menu.link.style';
use wcf\data\package\Package;
use wcf\data\style\Style;
use wcf\data\style\StyleEditor;
+use wcf\form\AbstractForm;
use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\UserInputException;
use wcf\system\WCF;
* @subpackage acp.form
* @category Community Framework
*/
-class StyleExportForm extends ACPForm {
+class StyleExportForm extends AbstractForm {
/**
- * @see wcf\acp\form\ACPForm::$activeMenuItem
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
public $activeMenuItem = 'wcf.acp.menu.link.style';
<?php
namespace wcf\acp\form;
use wcf\data\style\StyleEditor;
+use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
use wcf\system\WCF;
use wcf\util\FileUtil;
* @subpackage acp.form
* @category Community Framework
*/
-class StyleImportForm extends ACPForm {
+class StyleImportForm extends AbstractForm {
/**
- * @see wcf\acp\form\ACPForm::$activeMenuItem
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
public $activeMenuItem = 'wcf.acp.menu.link.style.import';
<?php
namespace wcf\acp\page;
use wcf\page\MultipleLinkPage;
-use wcf\system\menu\acp\ACPMenu;
/**
* Shows the style list page.
* @category Community Framework
*/
class StyleListPage extends MultipleLinkPage {
+ /**
+ * @see wcf\page\AbstractPage::$activeMenuItem
+ */
+ public $activeMenuItem = 'wcf.acp.menu.link.style.list';
+
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
$this->objectList->sqlSelects = "(SELECT COUNT(*) FROM wcf".WCF_N."_user WHERE styleID = style.styleID) AS users";
}
-
- /**
- * @see wcf\page\IPage::show()
- */
- public function show() {
- // set active menu item.
- ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.style.list');
-
- parent::show();
- }
}