|
| checkin ($pk=null) |
|
| checkout ($pk=null) |
|
| validate ($form, $data, $group=null) |
|
| __construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) |
|
| checkin ($pk=null) |
|
| checkout ($pk=null) |
|
| validate ($form, $data, $group=null) |
|
| __construct ($config=array(), MVCFactoryInterface $factory=null) |
|
| getTable ($name='', $prefix='', $options=array()) |
|
| isCheckedOut ($item) |
|
| getDbo () |
|
| setDbo (DatabaseInterface $db=null) |
|
| __get ($name) |
|
| __construct ($config=array()) |
|
| getName () |
|
| __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) |
|
| getState ($property=null, $default=null) |
|
| setState ($property, $value=null) |
|
| setDispatcher (DispatcherInterface $dispatcher) |
|
| setCurrentUser (User $currentUser) |
|
| setCacheControllerFactory (CacheControllerFactoryInterface $factory) |
|
| setDatabase (DatabaseInterface $db) |
|
| setFormFactory (FormFactoryInterface $factory) |
|
| getForm ($data=array(), $loadData=true) |
|
|
| loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) |
|
| loadFormData () |
|
| preprocessData ($context, &$data, $group='content') |
|
| preprocessForm (Form $form, $data, $group='content') |
|
| _getList ($query, $limitstart=0, $limit=0) |
|
| _getListCount ($query) |
|
| _createTable ($name, $prefix='Table', $config=array()) |
|
| bootComponent ($component) |
|
| dispatchEvent (EventInterface $event) |
|
Prototype form model.
- Voir également
- JForm
-
-
- Depuis
- 3.2
◆ 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
- 3.2
- Exceptions
-
Références $user, et Factory\getUser().
◆ 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
- 3.2
Références $user, Text\_(), et Factory\getUser().
◆ 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
- mixed JForm object on success, False on error.
- Voir également
- JForm
- Depuis
- 3.2
Références $data, $form, $hash, $name, $options, Form\addFormPath(), Factory\getApplication(), Form\getInstance(), ArrayHelper\getValue(), JPATH_ADMINISTRATOR, JPATH_SITE, Joomla\CMS\MVC\Model\loadFormData(), et Joomla\CMS\MVC\Model\preprocessForm().
◆ loadFormData()
Method to get the data that should be injected in the form.
- Renvoie
- array The default data is an empty array.
- Depuis
- 3.2
◆ 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.2
Références $context, $data, Factory\getApplication(), et PluginHelper\importPlugin().
◆ preprocessForm()
preprocessForm |
( |
Form |
$form, |
|
|
|
$data, |
|
|
|
$group = 'content' |
|
) |
| |
|
protected |
Method to allow derived classes to preprocess the form.
- Paramètres
-
Form | $form | A Form 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
- 3.2
- Exceptions
-
Références $data, $form, Factory\getApplication(), et PluginHelper\importPlugin().
◆ validate()
validate |
( |
|
$form, |
|
|
|
$data, |
|
|
|
$group = null |
|
) |
| |
Method to validate the form data.
- Paramètres
-
Form | $form | The form to validate against. |
array | $data | The data to validate. |
string | $group | The name of the field group to validate. |
- Renvoie
- mixed Array of filtered data if valid, false otherwise.
- Voir également
-
JFilterInput
- Depuis
- 3.2
Références $data, $form, $message, $return, et Factory\getApplication().
◆ $forms
La documentation de cette classe a été générée à partir du fichier suivant :