Actions

API17

Difference between revisions of "JHtmlJGrid::state"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHtmlJGrid::state|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHtmlJGrid::state|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</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 62:
 
|-
 
|-
 
|}
 
|}
===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 (line 84)
+
* see source code in [[jplatform:html/html/jgrid.php#cl-84|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JHtmlJGrid::state source code''' on [[jplatform:html/html/jgrid.php#cl-76|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHtmlJGrid/11.1|JHtmlJGrid]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JHtmlJGrid::state|Other versions of JHtmlJGrid::state]]
 +
{{SeeAlso:JHtmlJGrid::state}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid::state|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlJGrid::state|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHtmlJGrid/11.1|JHtmlJGrid]]
+
===User contributed notes===
* [[JHtmlJGrid::state|Other versions of this method]]
+
{{SeeAlso:JHtmlJGrid::state}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 78: Line 82:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHtmlJGrid]][[Category:JHtmlJGrid::state]]</noinclude>
 
<noinclude>[[Category:JHtmlJGrid]][[Category:JHtmlJGrid::state]]</noinclude>

Revision as of 21:07, 27 April 2011

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.

Joomla 11.1 JHtmlJGrid::state

Description

Returns a state on a grid.

Description:JHtmlJGrid::state [Edit Descripton]

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

SeeAlso:JHtmlJGrid::state [Edit See Also]

User contributed notes

<CodeExamplesForm />