Liste de tous les membres
Fonctions membres publiques statiques |
static | accesslevel (&$row) |
static | images ($name, $active=null, $javascript=null, $directory=null, $extensions="bmp|gif|jpg|png") |
static | genericordering ($sql, $chop= '30') |
static | specificordering ($value, $id, $query, $neworder=0) |
static | ordering ($name, $query, $attribs=null, $selected=null, $neworder=null, $chop=null) |
static | users ($name, $active, $nouser=0, $javascript=null, $order= 'name', $reg=1) |
static | positions ($name, $active=null, $javascript=null, $none=1, $center=1, $left=1, $right=1, $id=false) |
static | category ($name, $extension, $selected=null, $javascript=null, $order=null, $size=1, $sel_cat=1) |
Documentation des fonctions membres
static JHtmlList::accesslevel |
( |
& |
$row | ) |
|
|
static |
static JHtmlList::category |
( |
|
$name, |
|
|
|
$extension, |
|
|
|
$selected = null , |
|
|
|
$javascript = null , |
|
|
|
$order = null , |
|
|
|
$size = 1 , |
|
|
|
$sel_cat = 1 |
|
) |
| |
|
static |
Crates a select list of categories
- Paramètres:
-
string | $name | Name of the field |
string | $extension | Extension for which the categories will be listed |
string | $selected | Selected value |
string | $javascript | Custom javascript |
integer | $order | Not used. |
integer | $size | Size of the field |
boolean | $sel_cat | If null do not include a Select Categories row |
- Renvoie:
- string
- Obsolète:
- 12.1 Use JHtmlCategory instead
- Depuis:
- 11.1
- Voir également:
- JHtmlCategory
Références $category, $extension, $name, JHtml\_(), JText\_(), JLog\add(), et JLog\WARNING.
static JHtmlList::genericordering |
( |
|
$sql, |
|
|
|
$chop = '30' |
|
) |
| |
|
static |
Returns an array of options
- Paramètres:
-
string | $sql | 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:
- 11.1
Références $db, $i, $n, $options, $text, JHtml\_(), JText\_(), JFactory\getDbo(), JError\raiseNotice(), JString\strlen(), JString\substr(), text, et value.
static JHtmlList::images |
( |
|
$name, |
|
|
|
$active = null , |
|
|
|
$javascript = null , |
|
|
|
$directory = null , |
|
|
|
$extensions = "bmp|gif|jpg|png" |
|
) |
| |
|
static |
Build the select list to choose an image
- Paramètres:
-
string | $name | The name of the field |
string | $active | The selected item |
string | $javascript | Alternative javascript |
string | $directory | Directory the images are stored in |
string | $extensions | Allowed extensions |
- Renvoie:
- array Image names
- Depuis:
- 11.1
Références $active, $file, $images, $name, JHtml\_(), JText\_(), JFolder\files(), jimport(), et JPATH_SITE.
static JHtmlList::ordering |
( |
|
$name, |
|
|
|
$query, |
|
|
|
$attribs = null , |
|
|
|
$selected = null , |
|
|
|
$neworder = null , |
|
|
|
$chop = 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 | $chop | The length of the truncated headline |
- Renvoie:
- string Html for the select list
- Depuis:
- 11.1
Références $attribs, $html, $name, $query, $text, JHtml\_(), JText\_(), et elseif.
Référencé par specificordering().
static JHtmlList::positions |
( |
|
$name, |
|
|
|
$active = null , |
|
|
|
$javascript = null , |
|
|
|
$none = 1 , |
|
|
|
$center = 1 , |
|
|
|
$left = 1 , |
|
|
|
$right = 1 , |
|
|
|
$id = false |
|
) |
| |
|
static |
Select list of positions - generally used for location of images
- Paramètres:
-
string | $name | Name of the field |
string | $active | The active value |
string | $javascript | Alternative javascript |
boolean | $none | Null if not assigned |
boolean | $center | Null if not assigned |
boolean | $left | Null if not assigned |
boolean | $right | Null if not assigned |
boolean | $id | Null if not assigned |
- Renvoie:
- array The positions
- Depuis:
- 11.1
Références $active, $id, $name, JHtml\_(), JText\_(), et null.
static JHtmlList::specificordering |
( |
|
$value, |
|
|
|
$id, |
|
|
|
$query, |
|
|
|
$neworder = 0 |
|
) |
| |
|
static |
Build a select list with a specific ordering
- Paramètres:
-
integer | $value | The scalar value |
integer | $id | The id for an existing item in the list |
string | $query | The query |
integer | $neworder | 1 if new and first, -1 if new and last, 0 or null if existing item |
- Renvoie:
- string Html for the ordered list
- Depuis:
- 11.1
- Voir également:
- JHtmlList::ordering
- Obsolète:
- 12.1 Use JHtml::_('list.ordering') instead
Références $id, $query, et ordering().
static JHtmlList::users |
( |
|
$name, |
|
|
|
$active, |
|
|
|
$nouser = 0 , |
|
|
|
$javascript = null , |
|
|
|
$order = 'name' , |
|
|
|
$reg = 1 |
|
) |
| |
|
static |
Select list of active users
- Paramètres:
-
string | $name | The name of the field |
string | $active | The active user |
integer | $nouser | If set include an option to select no user |
string | $javascript | Custom javascript |
string | $order | Specify a field to order by |
string | $reg | Deprecated Excludes users who are explicitly in group 2. |
- Renvoie:
- string The HTML for a list of users list of users
- Depuis:
- 11.1
Références $active, $db, $name, $query, $users, JHtml\_(), JText\_(), et JFactory\getDbo().
La documentation de cette classe a été générée à partir du fichier suivant :