Source for file items.php
Documentation is available at items.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* The Menu Item Controller
* @package Joomla.Administrator
public function getModel($name =
'Item', $prefix =
'MenusModel', $config =
array())
return parent::getModel($name, $prefix, array('ignore_request' =>
true));
* Rebuild the nested set tree.
* @return bool False on failure or error, true on success.
$this->setRedirect('index.php?option=com_menus&view=items');
// Get the arrays from the Request
$order =
$this->input->post->get('order', null, 'array');
$originalOrder =
explode(',', $this->input->getString('original_order_values'));
// Make sure something has changed
if (!($order ===
$originalOrder))
* Method to set the home property for a list of items
// Check for request forgeries
// Get items to publish from the request.
$cid =
$this->input->get('cid', array(), 'array');
$data =
array('setDefault' =>
1, 'unsetDefault' =>
0);
// Make sure the item ids are integers
if (!$model->setHome($cid, $value))
$ntext =
'COM_MENUS_ITEMS_SET_HOME';
$ntext =
'COM_MENUS_ITEMS_UNSET_HOME';
Documentation generated on Tue, 19 Nov 2013 15:06:02 +0100 by phpDocumentor 1.4.3