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

Fonctions membres publiques

 save ($data)
 
 getTable ($name='Group', $prefix='FieldsTable', $options=array())
 
 getForm ($data=array(), $loadData=true)
 
 validate ($form, $data, $group=null)
 
 getItem ($pk=null)
 

Champs de données

 $typeAlias = null
 

Fonctions membres protégées

 canDelete ($record)
 
 canEditState ($record)
 
 populateState ()
 
 getReorderConditions ($table)
 
 preprocessForm (JForm $form, $data, $group='content')
 
 loadFormData ()
 
 cleanCache ($group=null, $clientId=0)
 

Attributs protégés

 $batch_commands
 

Description détaillée

Group Model

Depuis
3.7.0

Documentation des fonctions membres

◆ canDelete()

canDelete (   $record)
protected

Method to test whether a record can be deleted.

Paramètres
object$recordA record object.
Renvoie
boolean True if allowed to delete the record. Defaults to the permission for the component.
Depuis
3.7.0

◆ canEditState()

canEditState (   $record)
protected

Method to test whether a record can have its state changed.

Paramètres
object$recordA record object.
Renvoie
boolean True if allowed to change the state of the record. Defaults to the permission for the component.
Depuis
3.7.0

Références $user.

◆ cleanCache()

cleanCache (   $group = null,
  $clientId = 0 
)
protected

Clean the cache

Paramètres
string$groupThe cache group
integer$clientIdThe ID of the client
Renvoie
void
Depuis
3.7.0

Références $context.

◆ getForm()

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

Abstract method for getting the form from the model.

Paramètres
array$dataData for the form.
boolean$loadDataTrue if the form is to load its own data (default case), false if not.
Renvoie
mixed A JForm object on success, false on failure
Depuis
3.7.0

Références $context, $data, $form, et $jinput.

◆ getItem()

getItem (   $pk = null)

Method to get a single record.

Paramètres
integer$pkThe id of the primary key.
Renvoie
mixed Object on success, false on failure.
Depuis
3.7.0

Références $item.

◆ getReorderConditions()

getReorderConditions (   $table)
protected

A protected method to get a set of ordering conditions.

Paramètres
JTable$tableA JTable object.
Renvoie
array An array of conditions to add to ordering queries.
Depuis
3.7.0

◆ getTable()

getTable (   $name = 'Group',
  $prefix = 'FieldsTable',
  $options = array() 
)

Method to get a table object, load it if necessary.

Paramètres
string$nameThe table name. Optional.
string$prefixThe class prefix. Optional.
array$optionsConfiguration array for model. Optional.
Renvoie
JTable A JTable object
Depuis
3.7.0
Exceptions
Exception

Références $name, $options, $prefix, et JPATH_ADMINISTRATOR.

◆ loadFormData()

loadFormData ( )
protected

Method to get the data that should be injected in the form.

Renvoie
array The default data is an empty array.
Depuis
3.7.0

Références $app, $context, $data, $filters, et null.

◆ populateState()

populateState ( )
protected

Auto-populate the model state.

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

Renvoie
void
Depuis
3.7.0

Références $context.

◆ preprocessForm()

preprocessForm ( JForm  $form,
  $data,
  $group = 'content' 
)
protected

Method to preprocess the form.

Paramètres
JForm$formA JForm object.
mixed$dataThe data expected for the form.
string$groupThe name of the plugin group to import (defaults to "content").
Renvoie
void
Voir également
JFormField
Depuis
3.7.0
Exceptions
Exceptionif there is an error in the form event.

Références $component, $data, $form, $lang, $parts, $path, $section, FieldsHelper\extract(), JPATH_ADMINISTRATOR, JPATH_BASE, et null.

◆ save()

save (   $data)

Method to save the form data.

Paramètres
array$dataThe form data.
Renvoie
boolean True on success, False on error.
Depuis
3.7.0

Références $data, et $input.

◆ validate()

validate (   $form,
  $data,
  $group = null 
)

Method to validate the form data.

Paramètres
JForm$formThe form to validate against.
array$dataThe data to validate.
string$groupThe name of the field group to validate.
Renvoie
array|boolean Array of filtered data if valid, false otherwise.
Voir également
JFormRule
JFilterInput
Depuis
3.9.23

Références $data, $form, et validate().

Documentation des champs

◆ $batch_commands

$batch_commands
protected
Valeur initiale :
= array(
'assetgroup_id' => 'batchAccess',
'language_id' => 'batchLanguage'
)

◆ $typeAlias

$typeAlias = null

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