Actions

API17

Difference between revisions of "JHtmlGrid::sort"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHtmlGrid::sort|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHtmlGrid::sort|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JHtmlGrid::sort ($title, $order, $direction= 'asc', $selected=0, $task=NULL, $new_direction='asc')
+
public static function sort (
 +
        $title
 +
        $order
 +
        $direction= 'asc'
 +
        $selected=0
 +
        $task=NULL
 +
        $new_direction='asc'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 50: Line 56:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string
string
+
* '''Defined''' on line 68 of libraries/joomla/html/html/grid.php
===Defined in===
+
libraries/joomla/html/html/grid.php (line 68)
+
* see source code in [[jplatform:html/html/grid.php#cl-68|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JHtmlGrid::sort source code''' on [[jplatform:html/html/grid.php#cl-60|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHtmlGrid/11.1|JHtmlGrid]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JHtmlGrid::sort|Other versions of JHtmlGrid::sort]]
 +
{{SeeAlso:JHtmlGrid::sort}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlGrid::sort|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHtmlGrid::sort|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHtmlGrid/11.1|JHtmlGrid]]
+
===User contributed notes===
* [[JHtmlGrid::sort|Other versions of this method]]
+
{{SeeAlso:JHtmlGrid::sort}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 71: Line 75:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHtmlGrid]][[Category:JHtmlGrid::sort]]</noinclude>
 
<noinclude>[[Category:JHtmlGrid]][[Category:JHtmlGrid::sort]]</noinclude>

Revision as of 21:06, 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 JHtmlGrid::sort

Description

Description:JHtmlGrid::sort [Edit Descripton]

public static function sort (
        $title
        $order
        $direction= 'asc'
        $selected=0
        $task=NULL
        $new_direction='asc'
)
Parameter Type Default Description
$title string The link title
$order string The order field for the column
$direction string 'asc' The current direction
$selected string 0 The selected ordering
$task string NULL An optional task override
$new_direction string 'asc' An optional direction for the new column
  • Returns string
  • Defined on line 68 of libraries/joomla/html/html/grid.php

See also

SeeAlso:JHtmlGrid::sort [Edit See Also]

User contributed notes

<CodeExamplesForm />