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 JFormFieldSQL
+ Graphe d'héritage de JFormFieldSQL:

Fonctions membres publiques

 __get ($name)
 
 __set ($name, $value)
 
 setup (SimpleXMLElement $element, $value, $group=null)
 
- Fonctions membres publiques hérités de JFormFieldList
 addOption ($text, $attributes=array())
 
 __get ($name)
 

Champs de données

 $type = 'SQL'
 

Fonctions membres protégées

 processQuery ($conditions, $filters, $defaults)
 
 getOptions ()
 
- Fonctions membres protégées hérités de JFormFieldList
 getInput ()
 
 getOptions ()
 

Attributs protégés

 $keyField
 
 $valueField
 
 $translate = false
 
 $query
 
- Attributs protégés hérités de JFormFieldList
 $type = 'List'
 

Description détaillée

Supports a custom SQL select list

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.2

Références $name.

◆ __set()

__set (   $name,
  $value 
)

Method to set certain otherwise inaccessible properties of the form field object.

Paramètres
string$nameThe property name for which to set the value.
mixed$valueThe value of the property.
Renvoie
void
Depuis
3.2

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

◆ getOptions()

getOptions ( )
protected

Method to get the custom field options. Use the query attribute to supply a query to generate the list.

Renvoie
array The field option objects.
Depuis
1.7.0

Références $db, $item, $items, $key, $options, et $value.

◆ processQuery()

processQuery (   $conditions,
  $filters,
  $defaults 
)
protected

Method to process the query from form.

Paramètres
array$conditionsThe conditions from the form.
string$filtersThe columns to filter.
array$defaultsThe defaults value to set if condition is empty.
Renvoie
JDatabaseQuery The query object.
Depuis
3.5

Références $db, $filters, $query, $value, et elseif.

◆ setup()

setup ( SimpleXMLElement  $element,
  $value,
  $group = null 
)

Method to attach a JForm object to the field.

Paramètres
SimpleXMLElement$elementThe SimpleXMLElement object representing the <field> tag for the form field object.
mixed$valueThe form field value to validate.
string$groupThe field name group control value. This acts as an array container for the field. For example if the field has name="foo" and the group value is set to "bar" then the full field name would end up being "bar[foo]".
Renvoie
boolean True on success.
Voir également
JFormField::setup()
Depuis
3.2

Références $filter, $filters, $name, $query, $return, et $value.

Documentation des champs

◆ $keyField

$keyField
protected

◆ $query

$query
protected

◆ $translate

$translate = false
protected

◆ $type

$type = 'SQL'

◆ $valueField

$valueField
protected

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