|
static | sort ($title, $order, $direction='asc', $selected='', $task=null, $newDirection='asc', $tip='', $form=null) |
|
static | checkall ($name='checkall-toggle', $action='Joomla.checkAll(this)') |
|
static | id ($rowNum, $recId, $checkedOut=false, $name='cid', $stub='cb', $title='', $formId=null) |
|
static | checkedOut (&$row, $i, $identifier='id') |
|
static | published ($value, $i, $img1='tick.png', $img0='publish_x.png', $prefix='') |
|
static | state ($filterState=' *', $published='JPUBLISHED', $unpublished='JUNPUBLISHED', $archived=null, $trashed=null) |
|
static | order ($rows, $image='filesave.png', $task='saveorder') |
|
Utility class for creating HTML Grids
- Depuis
- 1.5
◆ _checkedOut()
static _checkedOut |
( |
& |
$row, |
|
|
|
$overlib = true |
|
) |
| |
|
staticprotected |
Method to create a checked out icon with optional overlib in a grid.
- Paramètres
-
object | $row | The row object |
boolean | $overlib | True if an overlib with checkout information should be created. |
- Renvoie
- string HTMl for the icon and overlib
- Depuis
- 1.5
◆ checkall()
static checkall |
( |
|
$name = 'checkall-toggle' , |
|
|
|
$action = 'Joomla.checkAll(this)' |
|
) |
| |
|
static |
Method to check all checkboxes in a grid
- Paramètres
-
string | $name | The name of the form element |
string | $action | The action to perform on clicking the checkbox |
- Renvoie
- string
- Depuis
- 3.1.2
◆ checkedOut()
static checkedOut |
( |
& |
$row, |
|
|
|
$i, |
|
|
|
$identifier = 'id' |
|
) |
| |
|
static |
Displays a checked out icon.
- Paramètres
-
object | $row | A data object (must contain checked out as a property). |
integer | $i | The index of the row. |
string | $identifier | The property name of the primary key or index of the row. |
- Renvoie
- string
- Depuis
- 1.5
◆ id()
static id |
( |
|
$rowNum, |
|
|
|
$recId, |
|
|
|
$checkedOut = false , |
|
|
|
$name = 'cid' , |
|
|
|
$stub = 'cb' , |
|
|
|
$title = '' , |
|
|
|
$formId = null |
|
) |
| |
|
static |
Method to create a checkbox for a grid row.
- Paramètres
-
integer | $rowNum | The row index |
integer | $recId | The record id |
boolean | $checkedOut | True if item is checked out |
string | $name | The name of the form element |
string | $stub | The name of stub identifier |
string | $title | The name of the item |
string | $formId | An optional form selector. |
- Renvoie
- mixed String of html with a checkbox if item is not checked out, null if checked out.
- Depuis
- 1.5
◆ order()
static order |
( |
|
$rows, |
|
|
|
$image = 'filesave.png' , |
|
|
|
$task = 'saveorder' |
|
) |
| |
|
static |
Method to create an icon for saving a new ordering in a grid
- Paramètres
-
array | $rows | The array of rows of rows |
string | $image | The image [UNUSED] |
string | $task | The task to use, defaults to save order |
- Renvoie
- string
- Depuis
- 1.5
◆ published()
static published |
( |
|
$value, |
|
|
|
$i, |
|
|
|
$img1 = 'tick.png' , |
|
|
|
$img0 = 'publish_x.png' , |
|
|
|
$prefix = '' |
|
) |
| |
|
static |
Method to create a clickable icon to change the state of an item
- Paramètres
-
mixed | $value | Either the scalar value or an object (for backward compatibility, deprecated) |
integer | $i | The index |
string | $img1 | Image for a positive or on value |
string | $img0 | Image for the empty or off value |
string | $prefix | An optional prefix for the task |
- Renvoie
- string
- Depuis
- 1.5
◆ sort()
static sort |
( |
|
$title, |
|
|
|
$order, |
|
|
|
$direction = 'asc' , |
|
|
|
$selected = '' , |
|
|
|
$task = null , |
|
|
|
$newDirection = 'asc' , |
|
|
|
$tip = '' , |
|
|
|
$form = null |
|
) |
| |
|
static |
Method to sort a column in a grid
- Paramètres
-
string | $title | The link title |
string | $order | The order field for the column |
string | $direction | The current direction |
string | $selected | The selected ordering |
string | $task | An optional task override |
string | $newDirection | An optional direction for the new column |
string | $tip | An optional text shown as tooltip title instead of $title |
string | $form | An optional form selector |
- Renvoie
- string
- Depuis
- 1.5
Références $direction, $form, $icon, $selected, HTMLHelper\_(), et content.
◆ state()
static state |
( |
|
$filterState = '*' , |
|
|
|
$published = 'JPUBLISHED' , |
|
|
|
$unpublished = 'JUNPUBLISHED' , |
|
|
|
$archived = null , |
|
|
|
$trashed = null |
|
) |
| |
|
static |
Method to create a select list of states for filtering By default the filter shows only published and unpublished items
- Paramètres
-
string | $filterState | The initial filter state |
string | $published | The Text string for published |
string | $unpublished | The Text string for Unpublished |
string | $archived | The Text string for Archived |
string | $trashed | The Text string for Trashed |
- Renvoie
- string
- Depuis
- 1.5
La documentation de cette classe a été générée à partir du fichier suivant :