<?php
namespace wcf\acp\form;
-use wcf\data\menu\MenuAction;
use wcf\data\menu\Menu;
+use wcf\data\menu\MenuAction;
use wcf\form\AbstractForm;
use wcf\system\exception\IllegalLinkException;
use wcf\system\language\I18nHandler;
<?php
namespace wcf\acp\form;
+use wcf\data\menu\item\MenuItem;
+use wcf\data\menu\item\MenuItemAction;
+use wcf\data\menu\item\MenuItemEditor;
+use wcf\data\menu\item\MenuItemNodeTree;
+use wcf\data\menu\Menu;
+use wcf\data\page\Page;
+use wcf\data\page\PageNodeTree;
use wcf\form\AbstractForm;
+use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
-use wcf\data\menu\Menu;
-use wcf\system\exception\IllegalLinkException;
-use wcf\data\menu\item\MenuItemNodeTree;
-use wcf\data\page\Page;
-use wcf\data\menu\item\MenuItem;
-use wcf\data\menu\item\MenuItemAction;
-use wcf\data\menu\item\MenuItemEditor;
-use wcf\data\page\PageNodeTree;
/**
* Shows the menu item add form.
/**
* menu item node tree
- * @var wcf\data\menu\item\MenuItemNodeTree
+ * @var MenuItemNodeTree
*/
public $menuItems = null;
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$className
*/
- protected $className = 'wcf\data\menu\MenuEditor';
+ protected $className = MenuEditor::class;
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$permissionsCreate
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$permissionsDelete
- */
+ */
protected $permissionsDelete = array('admin.content.cms.canManageMenu');
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
- */
+ */
protected $permissionsUpdate = array('admin.content.cms.canManageMenu');
/**
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$className
*/
- protected $className = 'wcf\data\menu\item\MenuItemEditor';
+ protected $className = MenuItemEditor::class;
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$permissionsCreate
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$permissionsDelete
- */
+ */
protected $permissionsDelete = array('admin.content.cms.canManageMenu');
/**
* @see \wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
- */
+ */
protected $permissionsUpdate = array('admin.content.cms.canManageMenu');
/**