|
static | images ($name, $active=null, $javascript=null, $directory=null, $extensions='bmp|gif|jpg|png') |
|
static | genericordering ($query, $chop=30) |
|
static | ordering ($name, $query, $attribs=null, $selected=null, $neworder=null, ?string $id=null) |
|
static | users ($name, $active, $nouser=0, $javascript=null, $order='name') |
|
static | positions ( $name, $active=null, $javascript=null, $none=true, $center=true, $left=true, $right=true, $id=false) |
|
Utility class for creating different select lists
- Depuis
- 1.5
static genericordering |
( |
|
$query, |
|
|
|
$chop = 30 |
|
) |
| |
|
static |
Returns an array of options
- Paramètres
-
DatabaseQuery | string | $query | SQL with 'ordering' AS value and 'name field' AS text |
integer | $chop | The length of the truncated headline |
- Renvoie
- array An array of objects formatted for JHtml list processing
- Depuis
- 1.5
Références $db, $i, $items, $n, $options, $query, $text, Text\_(), HTMLHelper\_(), Factory\getDbo(), text, et value.
static ordering |
( |
|
$name, |
|
|
|
$query, |
|
|
|
$attribs = null , |
|
|
|
$selected = null , |
|
|
|
$neworder = null , |
|
|
?string |
$id = null |
|
) |
| |
|
static |
Build the select list for Ordering derived from a query
- Paramètres
-
integer | $name | The scalar value |
string | $query | The query |
string | $attribs | HTML tag attributes |
string | $selected | The selected item |
integer | $neworder | 1 if new and first, -1 if new and last, 0 or null if existing item |
string | $id | ID attribute for the resulting <select> element |
- Renvoie
- string HTML markup for the select list
- Depuis
- 1.6
Références $attribs, $html, $id, $name, $query, $selected, $text, Text\_(), HTMLHelper\_(), et elseif.