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é
Référence de la classe JHtmlList

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)
 

Description détaillée

Utility class for creating different select lists

Depuis
1.5

Documentation des fonctions membres

◆ genericordering()

static genericordering (   $query,
  $chop = 30 
)
static

Returns an array of options

Paramètres
string$querySQL with 'ordering' AS value and 'name field' AS text
integer$chopThe 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, et value.

◆ images()

static 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$nameThe name of the field
string$activeThe selected item
string$javascriptAlternative javascript
string$directoryDirectory the images are stored in
string$extensionsAllowed extensions
Renvoie
array Image names
Depuis
1.5

Références $active, $file, $images, $name, et JPATH_SITE.

◆ ordering()

static ordering (   $name,
  $query,
  $attribs = null,
  $selected = null,
  $neworder = null 
)
static

Build the select list for Ordering derived from a query

Paramètres
integer$nameThe scalar value
string$queryThe query
string$attribsHTML tag attributes
string$selectedThe selected item
integer$neworder1 if new and first, -1 if new and last, 0 or null if existing item
Renvoie
string HTML markup for the select list
Depuis
1.6

Références $attribs, $html, $name, $query, $selected, $text, et elseif.

◆ positions()

static positions (   $name,
  $active = null,
  $javascript = null,
  $none = true,
  $center = true,
  $left = true,
  $right = true,
  $id = false 
)
static

Select list of positions - generally used for location of images

Paramètres
string$nameName of the field
string$activeThe active value
string$javascriptAlternative javascript
boolean$noneNull if not assigned
boolean$centerNull if not assigned
boolean$leftNull if not assigned
boolean$rightNull if not assigned
boolean$idNull if not assigned
Renvoie
array The positions
Depuis
1.5

Références $active, $id, $name, $positions, et null.

◆ users()

static users (   $name,
  $active,
  $nouser = 0,
  $javascript = null,
  $order = 'name' 
)
static

Select list of active users

Paramètres
string$nameThe name of the field
string$activeThe active user
integer$nouserIf set include an option to select no user
string$javascriptCustom javascript
string$orderSpecify a field to order by
Renvoie
string The HTML for a list of users list of users
Depuis
1.5

Références $active, $db, $name, $query, et $users.


La documentation de cette classe a été générée à partir du fichier suivant :