Source for file ordering.php
Documentation is available at ordering.php
* @package FrameworkOnFramework
* @copyright Copyright (C) 2010 - 2012 Akeeba Ltd. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
// Protect from unauthorized access
* @package FrameworkOnFramework
* @return string The header HTML
$sortable =
($this->element['sortable'] !=
'false');
$view =
$this->form->getView();
$model =
$this->form->getModel();
$hasAjaxOrderingSupport =
$view->hasAjaxOrderingSupport();
// Non sortable?! I'm not sure why you'd want that, but if you insist...
return JText::_('JGRID_HEADING_ORDERING');
if (!$hasAjaxOrderingSupport)
// Ye olde Joomla! 2.5 method
$html =
JHTML::_('grid.sort', 'JFIELD_ORDERING_LABEL', 'ordering', $view->getLists()->order_Dir, $view->getLists()->order, 'browse');
$html .=
JHTML::_('grid.order', $model->getList());
// The new, drag'n'drop ordering support
'<i class="icon-menu-2"></i>',
$view->getLists()->order_Dir,
$view->getLists()->order,
Documentation generated on Tue, 19 Nov 2013 15:09:53 +0100 by phpDocumentor 1.4.3