Prototype form model.
- Voir également
- JForm
-
JFormField
-
JFormRule
- 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.
◆ 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.
◆ 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
- mixed A JForm object on success, false on failure
- Depuis
- 3.2
◆ 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, ArrayHelper\getValue(), et JPATH_COMPONENT_ADMINISTRATOR.
◆ 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 |
|
) |
| |
|
protected |
◆ preprocessForm()
preprocessForm |
( |
JForm |
$form, |
|
|
|
$data, |
|
|
|
$group = 'content' |
|
) |
| |
|
protected |
Method to allow derived classes to preprocess the form.
- Paramètres
-
JForm | $form | A JForm 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
- JFormField
- Depuis
- 3.2
- Exceptions
-
Exception | if there is an error in the form event. |
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
- mixed Array of filtered data if valid, false otherwise.
- Voir également
- JFormRule
-
JFilterInput
- Depuis
- 3.2
Références $data, $form, $message, et $return.
◆ $forms
La documentation de cette classe a été générée à partir du fichier suivant :