|
| getTable ($type='MenuType', $prefix='\JTable', $config=array()) |
|
& | getItem ($itemId=null) |
|
| getForm ($data=array(), $loadData=true) |
|
| validate ($form, $data, $group=null) |
|
| save ($data) |
|
| delete ($itemIds) |
|
& | getModules () |
|
| getExtensionElementsForMenuItems (array $itemIds) |
|
| __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) |
|
Menu Item Model for Menus.
- 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
Références Factory\getUser().
◆ canEditState()
Method to test whether the state of a record can be edited.
- Paramètres
-
object | $record | A record object. |
- Renvoie
- boolean True if allowed to change the state of the record. Defaults to the permission set in the component.
- Depuis
- 1.6
Références Factory\getUser().
◆ cleanCache()
cleanCache |
( |
|
$group = null , |
|
|
|
$clientId = 0 |
|
) |
| |
|
protected |
Custom clean the cache
- Paramètres
-
string | $group | Cache group name. |
integer | $clientId | |
◆ delete()
◆ getExtensionElementsForMenuItems()
getExtensionElementsForMenuItems |
( |
array |
$itemIds | ) |
|
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
◆ getItem()
& getItem |
( |
|
$itemId = null | ) |
|
◆ getModules()
◆ getTable()
getTable |
( |
|
$type = 'MenuType' , |
|
|
|
$prefix = '\JTable' , |
|
|
|
$config = array() |
|
) |
| |
Returns 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
- Table A database object
- Depuis
- 1.6
Références $config, $prefix, $type, et Table\getInstance().
◆ loadFormData()
◆ populateState()
◆ save()
◆ 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
- array|boolean Array of filtered data if valid, false otherwise.
- Voir également
- JFormRule
-
JFilterInput
- Depuis
- 3.9.23
Références $data, $form, et Factory\getUser().
◆ $_context
$_context = 'com_menus.menu' |
|
protected |
◆ $text_prefix
$text_prefix = 'COM_MENUS_MENU' |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :