Actions

API16

JHtmlJGrid/publishedOptions

From Joomla! Documentation

< API16:JHtmlJGrid
Revision as of 21:57, 13 May 2013 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

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 />