Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
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) |
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
|
static |
Returns an array of options
string | $query | SQL with 'ordering' AS value and 'name field' AS text |
integer | $chop | The length of the truncated headline |
Références $db, $i, $items, $n, $options, $query, $text, text, et value.
|
static |
Build the select list to choose an image
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 |
Références $active, $file, $images, $name, et JPATH_SITE.
Build the select list for Ordering derived from a query
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 |
Références $attribs, $html, $name, $query, $selected, $text, et elseif.
|
static |
Select list of positions - generally used for location of images
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 |
Références $active, $id, $name, $positions, et null.
Select list of active users
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 |