JHtmlJGrid/publishedOptions: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Returns an array of standard published state filter options.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHtmlJGrid/publishedOp... |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 36: | Line 36: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 51: | Line 51: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 02:57, 14 May 2013
Description
Returns an array of standard published state filter options.
[<! removed edit link to red link >]
<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />