JHtmlJGrid/publishedOptions: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m clean up |
||
| Line 2: | Line 2: | ||
Returns an array of standard published state filter options. | Returns an array of standard published state filter options. | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
| Line 35: | Line 33: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
Revision as of 14:06, 24 March 2017
Description
Returns an array of standard published state filter options.
<! removed transcluded page call, red link never existed >
Syntax
static publishedOptions()
Returns
string The HTML code for the select tag
Defined in
libraries/joomla/html/html/jgrid.php
Importing
jimport( 'joomla.html.html.jgrid' );
Source Body
public static function publishedOptions()
{
// Build the active state filter options.
$options = array();
$options[] = JHtml::_('select.option', '1', 'JOption_Published');
$options[] = JHtml::_('select.option', '0', 'JOption_Unpublished');
$options[] = JHtml::_('select.option', '-2', 'JOption_Trash');
$options[] = JHtml::_('select.option', '*', 'JOption_All');
return $options;
}
<! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />