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

Fonctions membres publiques

 __construct ($config=array())
 
 getFilterForm ($data=array(), $loadData=true)
 
 getGroups ()
 

Fonctions membres protégées

 populateState ($ordering=null, $direction=null)
 
 getStoreId ($id='')
 
 getListQuery ()
 
 _getList ($query, $limitstart=0, $limit=0)
 

Description détaillée

Fields Model

Depuis
3.7.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.
Voir également
JModelLegacy
Depuis
3.7.0

Références $config.

Documentation des fonctions membres

◆ _getList()

_getList (   $query,
  $limitstart = 0,
  $limit = 0 
)
protected

Gets an array of objects from the results of database query.

Paramètres
string$queryThe query.
integer$limitstartOffset.
integer$limitThe number of records.
Renvoie
array An array of results.
Depuis
3.7.0
Exceptions
RuntimeException

Références $field, $limit, et $query.

◆ getFilterForm()

getFilterForm (   $data = array(),
  $loadData = true 
)

Get the filter form

Paramètres
array$datadata
boolean$loadDataload current data
Renvoie
JForm|false the JForm object or false
Depuis
3.7.0

Références $data, $form, et null.

◆ getGroups()

getGroups ( )

Get the groups for the batch method

Renvoie
array An array of groups
Depuis
3.7.0

Références $db, $query, et $user.

◆ getListQuery()

getListQuery ( )
protected

Method to get a JDatabaseQuery object for retrieving the data set from a database.

Renvoie
JDatabaseQuery A JDatabaseQuery object to retrieve the data set.
Depuis
3.7.0

Références $app, $context, $db, $groups, $key, $language, $parts, $query, $state, $user, elseif, et FieldsHelper\extract().

◆ getStoreId()

getStoreId (   $id = '')
protected

Method to get a store id based on the model configuration state.

This is necessary because the model is used by the component and different modules that might need different sets of data or different ordering requirements.

Paramètres
string$idAn identifier string to generate the store id.
Renvoie
string A store id.
Depuis
3.7.0

Références $id.

◆ populateState()

populateState (   $ordering = null,
  $direction = null 
)
protected

Method to auto-populate the model state.

This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the model configuration flag to ignore the request is set.

Note. Calling getState in this method will result in recursion.

Paramètres
string$orderingAn optional ordering field.
string$directionAn optional direction (asc|desc).
Renvoie
void
Depuis
3.7.0

Références $context, $parts, et FieldsHelper\extract().


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