use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\UserInputException;
use wcf\system\language\LanguageFactory;
-use wcf\system\menu\acp\ACPMenu;
use wcf\system\WCF;
use wcf\util\ArrayUtil;
use wcf\util\StringUtil;
*/
class UserAddForm extends UserOptionListForm {
/**
- * @see wcf\page\AbstractPage::$neededPermissions
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
- public $neededPermissions = array('admin.user.canAddUser');
+ public $activeMenuItem = 'wcf.acp.menu.link.user.add';
/**
- * name of the active menu item
- * @var string
+ * @see wcf\page\AbstractPage::$neededPermissions
*/
- public $menuItemName = 'wcf.acp.menu.link.user.add';
+ public $neededPermissions = array('admin.user.canAddUser');
/**
* username
* @see wcf\page\IPage::show()
*/
public function show() {
- // set active menu item
- ACPMenu::getInstance()->setActiveMenuItem($this->menuItemName);
-
// get the default language id
$this->languageID = $this->getDefaultFormLanguageID();
*/
class UserEditForm extends UserAddForm {
/**
- * @see wcf\acp\form\UserAddForm::$menuItemName
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
- public $menuItemName = 'wcf.acp.menu.link.user.management';
+ public $activeMenuItem = 'wcf.acp.menu.link.user.management';
/**
* @see wcf\page\AbstractPage::$neededPermissions
use wcf\data\user\group\UserGroupEditor;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
-use wcf\system\menu\acp\ACPMenu;
use wcf\system\WCF;
use wcf\system\WCFACP;
use wcf\util\StringUtil;
*/
class UserGroupAddForm extends AbstractOptionListForm {
/**
- * @see wcf\page\AbstractPage::$neededPermissions
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
- public $neededPermissions = array('admin.user.canAddGroup');
+ public $activeMenuItem = 'wcf.acp.menu.link.group.add';
/**
- * name of the active acp menu item
- * @var string
+ * @see wcf\page\AbstractPage::$neededPermissions
*/
- public $menuItemName = 'wcf.acp.menu.link.group.add';
+ public $neededPermissions = array('admin.user.canAddGroup');
/**
* option tree
* @see wcf\form\IForm::show()
*/
public function show() {
- // set active menu item
- ACPMenu::getInstance()->setActiveMenuItem($this->menuItemName);
-
// check master password
WCFACP::checkMasterPassword();
*/
class UserGroupEditForm extends UserGroupAddForm {
/**
- * @see wcf\acp\form\UserGroupAddForm::$menuItemName
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
- public $menuItemName = 'wcf.acp.menu.link.group';
+ public $activeMenuItem = 'wcf.acp.menu.link.group';
/**
* @see wcf\page\AbstractPage::$neededPermissions
use wcf\system\event\EventHandler;
use wcf\system\exception\UserInputException;
use wcf\system\language\LanguageFactory;
-use wcf\system\menu\acp\ACPMenu;
use wcf\system\request\LinkHandler;
use wcf\system\wcf;
use wcf\util\ArrayUtil;
*/
class UserSearchForm extends UserOptionListForm {
/**
- * active menu item name
- * @var string
+ * @see wcf\page\AbstractPage::$activeMenuItem
*/
- public $menuItemName = 'wcf.acp.menu.link.user.search';
+ public $activeMenuItem = 'wcf.acp.menu.link.user.search';
/**
* @see wcf\page\AbstractPage::$neededPermissions
));
}
- /**
- * @see wcf\form\IForm::show()
- */
- public function show() {
- // set active menu item
- ACPMenu::getInstance()->setActiveMenuItem($this->menuItemName);
-
- // show form
- parent::show();
- }
-
/**
* @see wcf\form\IForm::save()
*/