Source for file batch.php
Documentation is available at batch.php
* @package Joomla.Libraries
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Extended Utility class for batch processing widgets.
* @package Joomla.Libraries
* Display a batch widget for the access level selector.
* @return string The necessary HTML for the widget.
public static function access()
JHtml::_('bootstrap.tooltip');
// Create the batch selector to change an access level on a selection list.
'<label id="batch-access-lbl" for="batch-access" class="hasToolip"'
.
'title="' .
JHtml::tooltipText('JLIB_HTML_BATCH_ACCESS_LABEL', 'JLIB_HTML_BATCH_ACCESS_LABEL_DESC') .
'">'
.
JText::_('JLIB_HTML_BATCH_ACCESS_LABEL')
'batch[assetgroup_id]', '',
'title' =>
JText::_('JLIB_HTML_BATCH_NOCHANGE'),
* Displays a batch widget for moving or copying items.
* @param string $extension The extension that owns the category.
* @return string The necessary HTML for the widget.
public static function item($extension)
// Create the copy/move options.
JHtml::_('select.option', 'c', JText::_('JLIB_HTML_BATCH_COPY')),
JHtml::_('select.option', 'm', JText::_('JLIB_HTML_BATCH_MOVE'))
// Create the batch selector to change select the category by which to move or copy.
'<label id="batch-choose-action-lbl" for="batch-choose-action">' .
JText::_('JLIB_HTML_BATCH_MENU_LABEL') .
'</label>'
.
'<div id="batch-choose-action" class="control-group">'
.
'<select name="batch[category_id]" class="inputbox" id="batch-category-id">'
.
'<option value="">' .
JText::_('JSELECT') .
'</option>'
.
JHtml::_('select.options', JHtml::_('category.options', $extension))
.
'<div id="batch-move-copy" class="control-group radio">'
.
JHtml::_('select.radiolist', $options, 'batch[move_copy]', '', 'value', 'text', 'm')
* Display a batch widget for the language selector.
* @return string The necessary HTML for the widget.
JHtml::_('bootstrap.tooltip');
// Create the batch selector to change the language on a selection list.
'<label id="batch-language-lbl" for="batch-language-id" class="hasToolip"'
.
' title="' .
JHtml::tooltipText('JLIB_HTML_BATCH_LANGUAGE_LABEL', 'JLIB_HTML_BATCH_LANGUAGE_LABEL_DESC') .
'">'
.
JText::_('JLIB_HTML_BATCH_LANGUAGE_LABEL')
.
'<select name="batch[language_id]" class="inputbox" id="batch-language-id">'
.
'<option value="">' .
JText::_('JLIB_HTML_BATCH_LANGUAGE_NOCHANGE') .
'</option>'
.
JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text')
* Display a batch widget for the user selector.
* @param boolean $noUser Choose to display a "no user" option
* @return string The necessary HTML for the widget.
public static function user($noUser =
true)
JHtml::_('bootstrap.tooltip');
$optionNo =
'<option value="0">' .
JText::_('JLIB_HTML_BATCH_USER_NOUSER') .
'</option>';
// Create the batch selector to select a user on a selection list.
'<label id="batch-user-lbl" for="batch-user" class="hasTooltip"'
.
' title="' .
JHtml::tooltipText('JLIB_HTML_BATCH_USER_LABEL', 'JLIB_HTML_BATCH_USER_LABEL_DESC') .
'">'
.
JText::_('JLIB_HTML_BATCH_USER_LABEL')
.
'<select name="batch[user_id]" class="inputbox" id="batch-user-id">'
.
'<option value="">' .
JText::_('JLIB_HTML_BATCH_USER_NOCHANGE') .
'</option>'
.
JHtml::_('select.options', JHtml::_('user.userlist'), 'value', 'text')
* Display a batch widget for the tag selector.
* @return string The necessary HTML for the widget.
public static function tag()
JHtml::_('bootstrap.tooltip');
// Create the batch selector to tag items on a selection list.
'<label id="batch-tag-lbl" for="batch-tag-id" class="hasTooltip"'
.
' title="' .
JHtml::tooltipText('JLIB_HTML_BATCH_TAG_LABEL', 'JLIB_HTML_BATCH_TAG_LABEL_DESC') .
'">'
.
JText::_('JLIB_HTML_BATCH_TAG_LABEL')
.
'<select name="batch[tag]" class="inputbox" id="batch-tag-id">'
.
'<option value="">' .
JText::_('JLIB_HTML_BATCH_TAG_NOCHANGE') .
'</option>'
.
JHtml::_('select.options', JHtml::_('tag.tags', array('filter.published' =>
array(1))), 'value', 'text')
Documentation generated on Tue, 19 Nov 2013 14:54:27 +0100 by phpDocumentor 1.4.3