API16

JHtmlJGrid/publishedOptions: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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 preparing for archive only
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Returns an array of standard published state filter options.
Returns an array of standard published state filter options.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHtmlJGrid/publishedOptions|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JHtmlJGrid/publishedOptions}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 35: Line 33:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid/publishedOptions|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JHtmlJGrid/publishedOptions}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=publishedOptions
  category=publishedOptions
  category=JHtmlJGrid
  category=JHtmlJGrid
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Latest revision as of 01:46, 25 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

Code Examples