Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe FormModel
+ Graphe d'héritage de FormModel:

Fonctions membres publiques

 getForm ($data=array(), $loadData=true)
 
 getItem ($itemId=null)
 
 getReturnPage ()
 
 save ($data)
 
 getTable ($name='Contact', $prefix='Administrator', $options=array())
 
- Fonctions membres publiques hérités de ContactModel
 getForm ($data=array(), $loadData=true)
 
 getItem ($pk=null)
 
 featured ($pks, $value=0)
 
- Fonctions membres publiques hérités de AdminModel
 __construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null)
 
 batch ($commands, $pks, $contexts)
 
 checkin ($pks=array())
 
 checkout ($pk=null)
 
 delete (&$pks)
 
 getItem ($pk=null)
 
 publish (&$pks, $value=1)
 
 reorder ($pks, $delta=0)
 
 save ($data)
 
 saveorder ($pks=array(), $order=null)
 
 generateTitle ($categoryId, $table)
 
 initBatch ()
 
 editAssociations ($data)
 
- Fonctions membres publiques hérités de FormModel
 __construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null)
 
 checkin ($pk=null)
 
 checkout ($pk=null)
 
 validate ($form, $data, $group=null)
 
- Fonctions membres publiques hérités de BaseDatabaseModel
 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
 getTable ($name='', $prefix='', $options=array())
 
 isCheckedOut ($item)
 
 getDbo ()
 
 setDbo (DatabaseInterface $db=null)
 
 __get ($name)
 
- Fonctions membres publiques hérités de BaseModel
 __construct ($config=array())
 
 getName ()
 
- Fonctions membres publiques hérités de CMSObject
 __construct ($properties=null)
 
 __toString ()
 
 def ($property, $default=null)
 
 get ($property, $default=null)
 
 getProperties ($public=true)
 
 getError ($i=null, $toString=true)
 
 getErrors ()
 
 set ($property, $value=null)
 
 setProperties ($properties)
 
 setError ($error)
 
- Fonctions membres publiques hérités de StatefulModelInterface
 getState ($property=null, $default=null)
 
 setState ($property, $value=null)
 
- Fonctions membres publiques hérités de DispatcherAwareInterface
 setDispatcher (DispatcherInterface $dispatcher)
 
- Fonctions membres publiques hérités de CurrentUserInterface
 setCurrentUser (User $currentUser)
 
- Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface
 setCacheControllerFactory (CacheControllerFactoryInterface $factory)
 
- Fonctions membres publiques hérités de DatabaseAwareInterface
 setDatabase (DatabaseInterface $db)
 
- Fonctions membres publiques hérités de FormFactoryAwareInterface
 setFormFactory (FormFactoryInterface $factory)
 

Champs de données

 $typeAlias = 'com_contact.contact'
 
- Champs de données hérités de ContactModel
 $typeAlias = 'com_contact.contact'
 
- Champs de données hérités de AdminModel
 $typeAlias
 

Fonctions membres protégées

 populateState ()
 
 preprocessForm (Form $form, $data, $group='contact')
 
- Fonctions membres protégées hérités de ContactModel
 batchUser ($value, $pks, $contexts)
 
 canDelete ($record)
 
 canEditState ($record)
 
 loadFormData ()
 
 prepareTable ($table)
 
 getReorderConditions ($table)
 
 preprocessForm (Form $form, $data, $group='content')
 
- Fonctions membres protégées hérités de AdminModel
 batchAccess ($value, $pks, $contexts)
 
 batchCopy ($value, $pks, $contexts)
 
 cleanupPostBatchCopy (TableInterface $table, $newId, $oldId)
 
 batchLanguage ($value, $pks, $contexts)
 
 batchMove ($value, $pks, $contexts)
 
 batchTag ($value, $pks, $contexts)
 
 canDelete ($record)
 
 canEditState ($record)
 
 generateNewTitle ($categoryId, $alias, $title)
 
 getReorderConditions ($table)
 
 populateState ()
 
 prepareTable ($table)
 
 checkCategoryId ($categoryId)
 
 redirectToAssociations ($data)
 
- Fonctions membres protégées hérités de BaseDatabaseModel
 _getList ($query, $limitstart=0, $limit=0)
 
 _getListCount ($query)
 
 _createTable ($name, $prefix='Table', $config=array())
 
 bootComponent ($component)
 
 dispatchEvent (EventInterface $event)
 

Attributs protégés

 $formName = 'form'
 
- Attributs protégés hérités de ContactModel
 $associationsContext = 'com_contact.item'
 
 $batch_copymove = 'category_id'
 
 $batch_commands
 
 $formName = 'contact'
 
- Attributs protégés hérités de AdminModel
 $text_prefix = null
 
 $event_after_delete = null
 
 $event_after_save = null
 
 $event_before_delete = null
 
 $event_before_save = null
 
 $event_before_change_state = null
 
 $event_change_state = null
 
 $event_before_batch = null
 
 $batch_copymove = 'category_id'
 
 $batch_commands
 
 $associationsContext = null
 
 $batchSet = null
 
 $user = null
 
 $table = null
 
 $tableClassName = null
 
 $contentType = null
 
 $type = null
 
- Attributs protégés hérités de FormModel
 $events_map = null
 
- Attributs protégés hérités de BaseDatabaseModel
 $option = null
 
 $event_clean_cache = null
 
- Attributs protégés hérités de BaseModel
 $name
 
- Attributs protégés hérités de CMSObject
 $_errors = array()
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de BaseModel
static addIncludePath ($path='', $prefix='')
 
- Attributs protégés statiques hérités de BaseModel
static $paths
 

Description détaillée

Documentation des fonctions membres

◆ getForm()

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

Method to get the row form.

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

Implémente FormModelInterface.

Références $data, $form, $id, Associations\getAssociations(), Joomla\CMS\MVC\Model\getState(), et Associations\isEnabled().

◆ getItem()

getItem (   $itemId = null)

Method to get contact data.

Paramètres
integer$itemIdThe id of the contact.
Renvoie
mixed Contact item data object on success, false on failure.
Exceptions
Exception
Depuis
4.0.0

Références $itemId, $value, class, Factory\getApplication(), Joomla\CMS\MVC\Model\getState(), et ArrayHelper\toObject().

◆ getReturnPage()

getReturnPage ( )

Get the return URL.

Renvoie
string The return URL.
Depuis
4.0.0

Références Joomla\CMS\MVC\Model\getState().

◆ getTable()

getTable (   $name = 'Contact',
  $prefix = 'Administrator',
  $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
bool|Table A Table object
Depuis
4.0.0
Exceptions
Exception

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

◆ populateState()

populateState ( )
protected

Method to auto-populate the model state.

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

Renvoie
void
Depuis
4.0.0
Exceptions
Exception

Références $app, $params, $return, Factory\getApplication(), et Joomla\CMS\MVC\Model\setState().

◆ preprocessForm()

preprocessForm ( Form  $form,
  $data,
  $group = 'contact' 
)
protected

Allows preprocessing of the JForm object.

Paramètres
Form$formThe form object
array$dataThe data to be merged into the form object
string$groupThe plugin group to be executed
Renvoie
void
Depuis
4.0.0

Références $data, $form, Multilanguage\isEnabled(), et Joomla\CMS\MVC\Model\preprocessForm().

◆ save()

save (   $data)

Method to save the form data.

Paramètres
array$dataThe form data.
Renvoie
boolean True on success.
Depuis
4.0.0
Exceptions
Exception

Références $data, Associations\getAssociations(), et Associations\isEnabled().

Documentation des champs

◆ $formName

$formName = 'form'
protected

◆ $typeAlias

$typeAlias = 'com_contact.contact'

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