|
| __construct ($config=array(), MVCFactoryInterface $factory=null) |
|
| checkin ($pk=null) |
|
| checkout ($pk=null) |
|
| getForm ($data=array(), $loadData=true) |
|
| validate ($form, $data, $group=null) |
|
| __construct ($config=array(), MVCFactoryInterface $factory=null) |
|
| getDbo () |
|
| getName () |
|
| getState ($property=null, $default=null) |
|
| getTable ($name='', $prefix='Table', $options=array()) |
|
| loadHistory ($versionId, \JTable &$table) |
|
| setDbo ($db) |
|
| setState ($property, $value=null) |
|
|
| loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) |
|
| loadFormData () |
|
| preprocessData ($context, &$data, $group='content') |
|
| preprocessForm (\JForm $form, $data, $group='content') |
|
| _getList ($query, $limitstart=0, $limit=0) |
|
| _getListCount ($query) |
|
| _createTable ($name, $prefix='Table', $config=array()) |
|
| populateState () |
|
Prototype form model.
- Voir également
-
-
- Depuis
- 1.6
◆ __construct()
Constructor.
- Paramètres
-
array | $config | An optional associative array of configuration settings. |
MVCFactoryInterface | $factory | The factory. |
- Voir également
- Depuis
- 3.6
Références $config.
◆ checkin()
Method to checkin a row.
- Paramètres
-
integer | $pk | The numeric id of the primary key. |
- Renvoie
- boolean False on failure or error, true otherwise.
- Depuis
- 1.6
Références $user.
◆ checkout()
Method to check-out a row for editing.
- Paramètres
-
integer | $pk | The numeric id of the primary key. |
- Renvoie
- boolean False on failure or error, true otherwise.
- Depuis
- 1.6
Références $user.
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
|
abstract |
Abstract method for getting the form from the model.
- Paramètres
-
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
- Renvoie
- |boolean A object on success, false on failure
- Depuis
- 1.6
◆ loadForm()
loadForm |
( |
|
$name, |
|
|
|
$source = null , |
|
|
|
$options = array() , |
|
|
|
$clear = false , |
|
|
|
$xpath = false |
|
) |
| |
|
protected |
Method to get a form object.
- Paramètres
-
string | $name | The name of the form. |
string | $source | The form source. Can be XML string if file flag is set to false. |
array | $options | Optional array of options for the form creation. |
boolean | $clear | Optional argument to force load a new form. |
string | $xpath | An optional xpath to search for the fields. |
- Renvoie
- |boolean object on success, false on error.
- Voir également
- Depuis
- 1.6
Références $data, $form, $hash, $name, $options, et ArrayHelper\getValue().
◆ loadFormData()
Method to get the data that should be injected in the form.
- Renvoie
- array The default data is an empty array.
- Depuis
- 1.6
◆ preprocessData()
preprocessData |
( |
|
$context, |
|
|
& |
$data, |
|
|
|
$group = 'content' |
|
) |
| |
|
protected |
Method to allow derived classes to preprocess the data.
- Paramètres
-
string | $context | The context identifier. |
mixed | &$data | The data to be processed. It gets altered directly. |
string | $group | The name of the plugin group to import (defaults to "content"). |
- Renvoie
- void
- Depuis
- 3.1
Références $context, $data, $dispatcher, $results, et JEventDispatcher\getInstance().
◆ preprocessForm()
preprocessForm |
( |
\JForm |
$form, |
|
|
|
$data, |
|
|
|
$group = 'content' |
|
) |
| |
|
protected |
Method to allow derived classes to preprocess the form.
- Paramètres
-
\JForm | $form | A object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
- Renvoie
- void
- Voir également
- Depuis
- 1.6
- Exceptions
-
Références $data, $dispatcher, $form, $results, et JEventDispatcher\getInstance().
◆ validate()
validate |
( |
|
$form, |
|
|
|
$data, |
|
|
|
$group = null |
|
) |
| |
Method to validate the form data.
- Paramètres
-
\JForm | $form | The form to validate against. |
array | $data | The data to validate. |
string | $group | The name of the field group to validate. |
- Renvoie
- array|boolean Array of filtered data if valid, false otherwise.
- Voir également
-
- Depuis
- 1.6
Références $data, $dispatcher, $form, $message, $return, et JEventDispatcher\getInstance().
◆ $_forms
◆ $events_map
La documentation de cette classe a été générée à partir du fichier suivant :