API17

JHtmlJGrid::state: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
Returns a state on a grid.  
Returns a state on a grid.  


{{Description:JHtmlJGrid::state}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JHtmlJGrid::state|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Since===
{{JVer|1. }}
===Synopsis===
<source lang="php">
<source lang="php">
public static JHtmlJGrid::state ($states, $value, $i, $prefix= '', $enabled=true, $translate=true, $checkbox='cb')
public static function state (
        $states
        $value
        $i
        $prefix= ''
        $enabled=true
        $translate=true
        $checkbox='cb'
)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 57: Line 60:
|-
|-
|}
|}
===Returns===
* '''Returns''' The Html code
The Html code
* '''Defined''' on line 84 of libraries/joomla/html/html/jgrid.php
===Defined in===
* '''Since''' {{JVer|1. }}
libraries/joomla/html/html/jgrid.php
===Referenced by===
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JHtmlJGrid::state source code''' on [[jplatform:html/html/jgrid.php#cl-76|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid::state|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JHtmlJGrid|JHtmlJGrid]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]]
* [[JHtmlJGrid/11.1|JHtmlJGrid]]
* [[API17:JHtmlJGrid::state|Other versions of JHtmlJGrid::state]]
* [[JHtmlJGrid::state|Other versions of this method]]
 
{{SeeAlso:JHtmlJGrid::state}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JHtmlJGrid::state
category=JHtmlJGrid::state
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JHtmlJGrid]][[Category:JHtmlJGrid::state]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:12, 25 March 2017

Joomla 11.1 JHtmlJGrid::state

Description

Returns a state on a grid.


public static function state (
        $states
        $value
        $i
        $prefix= ''
        $enabled=true
        $translate=true
        $checkbox='cb'
)
Parameter Type Default Description
$states array array of value/state. Each state is an array of the form (task, text, title,html active class, html inactive class) or ('task'=>task, 'text'=>text, 'active_title'=>active title, 'inactive_title'=>inactive title, 'tip'=>boolean, 'active_class'=>html active class, 'inactive_class'=>html inactive class)
$value int The state value.
$i int The row index
$prefix array An optional task prefix or an array of options
$enabled boolean true An optional setting for access control on the action.
$translate boolean true An optional setting for translation.
$checkbox string 'cb' An optional prefix for checkboxes.
  • Returns The Html code
  • Defined on line 84 of libraries/joomla/html/html/jgrid.php
  • Since Joomla 1.

See also


User contributed notes

Code Examples