* Installs, updates and deletes ACP menu items.
*
* @author Alexander Ebert
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage system.package.plugin
* @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::$className
*/
public $className = 'wcf\data\acp\menu\item\ACPMenuItemEditor';
-
- /**
- * @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::prepareImport()
- */
- protected function prepareImport(array $data) {
- $result = parent::prepareImport($data);
-
- // controller
- $result['menuItemController'] = isset($data['elements']['controller']) ? $data['elements']['controller'] : '';
-
- return $result;
- }
}
// merge values and default values
return array(
'menuItem' => $data['attributes']['name'],
+ 'menuItemController' => isset($data['elements']['controller']) ? $data['elements']['controller'] : '',
'menuItemLink' => (isset($data['elements']['link'])) ? $data['elements']['link'] : '',
'options' => (isset($data['elements']['options'])) ? $data['elements']['options'] : '',
'parentMenuItem' => (isset($data['elements']['parent'])) ? $data['elements']['parent'] : '',
// position
$result['menuPosition'] = (!empty($data['elements']['position']) && $data['elements']['position'] == 'footer') ? 'footer' : 'header';
- // controller
- $result['menuItemController'] = (isset($data['elements']['controller'])) ? $data['elements']['controller'] : '';
-
// class name
if (!empty($data['elements']['classname'])) {
$result['className'] = $data['elements']['classname'];