Source for file menus.php
Documentation is available at menus.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
* @package Joomla.Administrator
* @param int $itemid The menu item id
// Get the associated menu items
$query =
$db->getQuery(true)
->select('m.id, m.title')
->select('l.sef as lang_sef')
->select('mt.title as menu_title')
->join('LEFT', '#__menu_types as mt ON mt.menutype=m.menutype')
->join('LEFT', '#__languages as l ON m.language=l.lang_code')
->select('l.title as language_title');
$items =
$db->loadObjectList('id');
catch
(runtimeException $e)
throw
new Exception($e->getMessage(), 500);
foreach ($items as &$item)
$url =
JRoute::_('index.php?option=com_menus&task=item.edit&id=' . (int)
$item->id);
JHtml::_('image', 'mod_languages/' .
$item->image .
'.gif',
array('title' =>
$item->language_title),
'(' .
$item->menu_title .
')'
$item->link =
JHtml::_('tooltip', implode(' ', $tooltipParts), null, null, $text, $url, null, 'hasTooltip label label-association label-' .
$item->lang_sef);
* Returns a published state on a grid
* @param integer $value The state value.
* @param integer $i The row index
* @param boolean $enabled An optional setting for access control on the action.
* @param string $checkbox An optional prefix for checkboxes.
* @return string The Html code
public static function state($value, $i, $enabled =
true, $checkbox =
'cb')
'COM_MENUS_HTML_UNPUBLISH_HEADING',
'COM_MENUS_HTML_PUBLISH_HEADING',
'COM_MENUS_HTML_UNPUBLISH_SEPARATOR',
'COM_MENUS_HTML_PUBLISH_SEPARATOR',
'COM_MENUS_HTML_UNPUBLISH_ALIAS',
'COM_MENUS_HTML_PUBLISH_ALIAS',
'COM_MENUS_HTML_UNPUBLISH_URL',
'COM_MENUS_HTML_PUBLISH_URL',
'COM_MENUS_EXTENSION_PUBLISHED_ENABLED',
'COM_MENUS_HTML_UNPUBLISH_ENABLED',
'COM_MENUS_EXTENSION_PUBLISHED_ENABLED',
'COM_MENUS_EXTENSION_UNPUBLISHED_ENABLED',
'COM_MENUS_HTML_PUBLISH_ENABLED',
'COM_MENUS_EXTENSION_UNPUBLISHED_ENABLED',
'COM_MENUS_EXTENSION_PUBLISHED_DISABLED',
'COM_MENUS_HTML_UNPUBLISH_DISABLED',
'COM_MENUS_EXTENSION_PUBLISHED_DISABLED',
'COM_MENUS_EXTENSION_UNPUBLISHED_DISABLED',
'COM_MENUS_HTML_PUBLISH_DISABLED',
'COM_MENUS_EXTENSION_UNPUBLISHED_DISABLED',
return JHtml::_('jgrid.state', $states, $value, $i, 'items.', $enabled, true, $checkbox);
Documentation generated on Tue, 19 Nov 2013 15:07:58 +0100 by phpDocumentor 1.4.3