Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getForm ($data=array(), $loadData=true) | |
getHelp () | |
getItem ($pk=null) | |
getModules () | |
getViewLevels () | |
getTable ($type='Menu', $prefix='MenusTable', $config=array()) | |
rebuild () | |
save ($data) | |
saveorder ($idArray=null, $lftArray=null) | |
setHome (&$pks, $value=1) | |
publish (&$pks, $value=1) | |
Champs de données | |
$typeAlias = 'com_menus.item' | |
Fonctions membres protégées | |
canDelete ($record) | |
canEditState ($record) | |
batchCopy ($value, $pks, $contexts) | |
batchMove ($value, $pks, $contexts) | |
canSave ($data=array(), $key='id') | |
loadFormData () | |
getReorderConditions ($table) | |
populateState () | |
getMenuType ($menutype) | |
getMenuTypeId ($menutype) | |
preprocessForm (JForm $form, $data, $group='content') | |
generateNewTitle ($parentId, $alias, $title) | |
cleanCache ($group=null, $clientId=0) | |
Attributs protégés | |
$associationsContext = 'com_menus.item' | |
$text_prefix = 'COM_MENUS_ITEM' | |
$helpKey = 'JHELP_MENUS_MENU_ITEM_MANAGER_EDIT' | |
$helpURL | |
$helpLocal = false | |
$batch_copymove = 'menu_id' | |
$batch_commands | |
Menu Item Model for Menus.
|
protected |
Batch copy menu items to a new menu or parent.
integer | $value | The new menu or sub-item. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Références $count, $db, $menuType, $parts, $query, $title, $user, $value, et null.
|
protected |
|
protected |
Method to test whether a record can be deleted.
object | $record | A record object. |
|
protected |
Method to test whether the state of a record can be edited.
object | $record | A record object. |
|
protected |
Method to check if you can save a record.
array | $data | An array of input data. |
string | $key | The name of the key for the primary key. |
Références option.
|
protected |
Custom clean the cache
string | $group | Cache group name. |
integer | $clientId | Application client id. |
|
protected |
Method to change the title & alias.
integer | $parentId | The id of the parent. |
string | $alias | The alias. |
string | $title | The title. |
Références $title.
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
getHelp | ( | ) |
Get the necessary data to load an item help screen.
getItem | ( | $pk = null | ) |
Method to get a menu item.
integer | $pk | An optional id of the object to get, otherwise the id from the model state is used. |
Références $component, $lang, $link, $type, MenusHelper\getAssociations(), MenusHelper\getLinkKey(), JPATH_ADMINISTRATOR, et null.
|
protected |
Loads the menutype object by a given menutype string
string | $menutype | The given menutype |
|
protected |
Loads the menutype ID by a given menutype string
string | $menutype | The given menutype |
Références $menu.
getModules | ( | ) |
Get the list of modules not in trash.
Join on the module-to-menu mapping table. We are only interested if the module is displayed on ALL or THIS menu item (or the inverse ID number). sqlsrv changes for modulelink to menu manager
|
protected |
A protected method to get the where clause for the reorder. This ensures that the row will be moved relative to a row with the same menutype.
JTableMenu | $table | instance. |
getTable | ( | $type = 'Menu' , |
|
$prefix = 'MenusTable' , |
|||
$config = array() |
|||
) |
Returns a Table object, always creating it
string | $type | The table type to instantiate. |
string | $prefix | A prefix for the table class name. Optional. |
array | $config | Configuration array for model. Optional. |
getViewLevels | ( | ) |
|
protected |
|
protected |
|
protected |
Method to preprocess the form.
JForm | $form | A JForm object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import. |
Exception | if there is an error in the form event. |
Références $base, $clientId, $data, $field, $fields, $form, $language, $layout, $link, $option, $path, $type, $view, elseif, JPATH_ADMINISTRATOR, null, et true.
publish | ( | & | $pks, |
$value = 1 |
|||
) |
Method to change the published state of one or more records.
array | $pks | A list of the primary keys to change. |
integer | $value | The value of the published state. |
Références $i, $value, et JError\raiseWarning().
rebuild | ( | ) |
Method rebuild the entire nested set tree.
Références $db, $item, $items, $params, $query, et JError\raiseWarning().
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $base, $context, $data, $db, $dispatcher, $id, $key, $menuType, $name, $option, $query, $title, elseif, JEventDispatcher\getInstance(), json_encode, option, JError\raiseNotice(), et ArrayHelper\toInteger().
Method to save the reordered nested set tree. First we save the new order values in the lft values of the changed ids. Then we invoke the table rebuild to implement the new ordering.
array | $idArray | Rows identifiers to be reordered |
array | $lftArray | lft values of rows to be reordered |
setHome | ( | & | $pks, |
$value = 1 |
|||
) |
Method to change the home state of one or more items.
array | $pks | A list of the primary keys to change. |
integer | $value | The value of the home state. |
Références $i, $value, elseif, JError\raiseNotice(), et JError\raiseWarning().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
$typeAlias = 'com_menus.item' |