|
| getTable ($type='Viewlevel', $prefix='JTable', $config=array()) |
|
| getItem ($pk=null) |
|
| getForm ($data=array(), $loadData=true) |
|
| save ($data) |
|
| validate ($form, $data, $group=null) |
|
| __construct ($config=array(), MVCFactoryInterface $factory=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) |
|
| createTagsHelper ($tagsObserver, $type, $pk, $typeAlias, $table) |
|
| generateTitle ($categoryId, $table) |
|
| initBatch () |
|
| editAssociations ($data) |
|
| __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) |
|
|
| canDelete ($record) |
|
| loadFormData () |
|
| preprocessForm (JForm $form, $data, $group='') |
|
| batchAccess ($value, $pks, $contexts) |
|
| batchCopy ($value, $pks, $contexts) |
|
| cleanupPostBatchCopy (\JTableInterface $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) |
|
| 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 () |
|
User view level model.
- Depuis
- 1.6
◆ canDelete()
Method to test whether a record can be deleted.
- Paramètres
-
object | $record | A record object. |
- Renvoie
- boolean True if allowed to delete the record. Defaults to the permission set in the component.
- Depuis
- 1.6
We are looking for the access field. If custom tables are using something other than the 'access' field they are on their own unfortunately. Also make sure the table prefix matches the live db prefix (eg, it is not a "bak_" table)
Références $db, $fields, $groups, $prefix, $query, et null.
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
Method to get the record form.
- Paramètres
-
array | $data | An optional array of data for the form to interrogate. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
- Renvoie
- JForm A JForm object on success, false on failure
- Depuis
- 1.6
Références $form.
◆ getItem()
Method to get a single record.
- Paramètres
-
integer | $pk | The id of the primary key. |
- Renvoie
- mixed Object on success, false on failure.
- Depuis
- 1.6
◆ getTable()
getTable |
( |
|
$type = 'Viewlevel' , |
|
|
|
$prefix = 'JTable' , |
|
|
|
$config = array() |
|
) |
| |
Returns a reference to the a Table object, always creating it.
- Paramètres
-
string | $type | The table type to instantiate |
string | $prefix | A prefix for the table class name. Optional. |
array | $config | Configuration array for model. Optional. |
- Renvoie
- JTable A database object
- Depuis
- 1.6
Références $config, $prefix, $return, et $type.
◆ loadFormData()
Method to get the data that should be injected in the form.
- Renvoie
- mixed The data for the form.
- Depuis
- 1.6
Références $data.
◆ preprocessForm()
preprocessForm |
( |
JForm |
$form, |
|
|
|
$data, |
|
|
|
$group = '' |
|
) |
| |
|
protected |
Method to preprocess the form
- Paramètres
-
JForm | $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
- Depuis
- 1.6
- Exceptions
-
Exception | if there is an error loading the form. |
Références $data, et $form.
◆ save()
Method to save the form data.
- Paramètres
-
- Renvoie
- boolean True on success.
- Depuis
- 1.6
Références $data.
◆ 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
- 3.8.8
Références $data, $form, $groups, $i, $n, elseif, et validate().
◆ $levelsInUse
La documentation de cette classe a été générée à partir du fichier suivant :