Source for file menuordering.php
Documentation is available at menuordering.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
* Form Field class for the Joomla Framework.
* @package Joomla.Administrator
protected $type =
'MenuOrdering';
* Method to get the list of siblings in a menu.
* The method requires that parent be set.
* @return array The field option objects or false if the parent field has not been set
$parent_id =
$this->form->getValue('parent_id', 0);
$query =
$db->getQuery(true)
->select('a.id AS value, a.title AS text')
->where('a.published >= 0')
->where('a.parent_id =' . (int)
$parent_id);
if ($menuType =
$this->form->getValue('menutype'))
$query->where('a.menutype = ' .
$db->quote($menuType));
$query->where('a.menutype != ' .
$db->quote(''));
$query->order('a.lft ASC');
$options =
$db->loadObjectList();
catch
(RuntimeException $e)
array(array('value' =>
'-1', 'text' =>
JText::_('COM_MENUS_ITEM_FIELD_ORDERING_VALUE_FIRST'))),
array(array('value' =>
'-2', 'text' =>
JText::_('COM_MENUS_ITEM_FIELD_ORDERING_VALUE_LAST')))
// Merge any additional options in the XML definition.
* Method to get the field input markup
* @return string The field input markup.
if ($this->form->getValue('id', 0) ==
0)
return '<span class="readonly">' .
JText::_('COM_MENUS_ITEM_FIELD_ORDERING_TEXT') .
'</span>';
Documentation generated on Tue, 19 Nov 2013 15:07:57 +0100 by phpDocumentor 1.4.3