Source for file banner.php
Documentation is available at banner.php
* @package Joomla.Administrator
* @subpackage com_banners
* @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
* @subpackage com_banners
* Display a batch widget for the client selector.
* @return string The necessary HTML for the widget.
JHtml::_('bootstrap.tooltip');
// Create the batch selector to change the client on a selection list.
'<label id="batch-client-lbl" for="batch-client" class="hasTooltip" title="' .
JHtml::tooltipText('COM_BANNERS_BATCH_CLIENT_LABEL', 'COM_BANNERS_BATCH_CLIENT_LABEL_DESC') .
'">',
JText::_('COM_BANNERS_BATCH_CLIENT_LABEL'),
'<select name="batch[client_id]" class="inputbox" id="batch-client-id">',
'<option value="">' .
JText::_('COM_BANNERS_BATCH_CLIENT_NOCHANGE') .
'</option>',
'<option value="0">' .
JText::_('COM_BANNERS_NO_CLIENT') .
'</option>',
JHtml::_('select.options', static::clientlist(), 'value', 'text'),
* Method to get the field options.
* @return array The field option objects.
$query =
$db->getQuery(true)
->select('id As value, name As text')
->from('#__banner_clients AS a')
$options =
$db->loadObjectList();
catch
(RuntimeException $e)
* Returns a pinned 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 pinned($value, $i, $enabled =
true, $checkbox =
'cb')
'COM_BANNERS_BANNERS_PINNED',
'COM_BANNERS_BANNERS_HTML_PIN_BANNER',
'COM_BANNERS_BANNERS_PINNED',
'COM_BANNERS_BANNERS_UNPINNED',
'COM_BANNERS_BANNERS_HTML_UNPIN_BANNER',
'COM_BANNERS_BANNERS_UNPINNED',
return JHtml::_('jgrid.state', $states, $value, $i, 'banners.', $enabled, true, $checkbox);
Documentation generated on Tue, 19 Nov 2013 14:54:18 +0100 by phpDocumentor 1.4.3