API16

JHtmlJGrid/publishedOptions

From Joomla! Documentation

< API16:JHtmlJGrid
Revision as of 17:51, 22 March 2010 by 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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Returns an array of standard published state filter options.

[Edit Descripton]

Template:Description:JHtmlJGrid/publishedOptions

Syntax[edit]

static publishedOptions()


Returns[edit]

string The HTML code for the select tag

Defined in[edit]

libraries/joomla/html/html/jgrid.php

Importing[edit]

jimport( 'joomla.html.html.jgrid' );

Source Body[edit]

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;
}

[Edit See Also] Template:SeeAlso:JHtmlJGrid/publishedOptions

Examples[edit]

<CodeExamplesForm />