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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JFormFieldList
+ Graphe d'héritage de JFormFieldList:

Fonctions membres publiques

 addOption ($text, $attributes=array())
 
 __get ($name)
 

Fonctions membres protégées

 getInput ()
 
 getOptions ()
 

Attributs protégés

 $type = 'List'
 

Description détaillée

Form Field class for the Joomla Platform. Supports a generic list of options.

Depuis
1.7.0

Documentation des fonctions membres

◆ __get()

__get (   $name)

Method to get certain otherwise inaccessible properties from the form field object.

Paramètres
string$nameThe property name for which to get the value.
Renvoie
mixed The property value or null.
Depuis
3.7.0

Références $name.

◆ addOption()

addOption (   $text,
  $attributes = array() 
)

Method to add an option to the list field.

Paramètres
string$textText/Language variable of the option.
array$attributesArray of attributes ('name' => 'value' format)
Renvoie
JFormFieldList For chaining.
Depuis
3.7.0

Références $attributes, $name, $text, et $value.

◆ getInput()

getInput ( )
protected

Method to get the field input markup for a generic list. Use the multiple attribute to enable multiselect.

Renvoie
string The field input markup.
Depuis
3.7.0

Références $attr, $html, $id, $options, $value, ENT_COMPAT, htmlspecialchars, if, name, size, true, et value.

◆ getOptions()

getOptions ( )
protected

Method to get the field options.

Renvoie
array The field option objects.
Depuis
3.7.0

Références $checked, $component, $disabled, $link, $option, $options, $params, $selected, $text, $tmp, $uri, $value, et json_encode.

Documentation des champs

◆ $type

$type = 'List'
protected

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