[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_menus/models/ -> menu.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 286 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MenusModelMenu:: (11 methods):
  canDelete()
  canEditState()
  getTable()
  populateState()
  getItem()
  getForm()
  loadFormData()
  save()
  delete()
  getModules()
  cleanCache()


Class: MenusModelMenu  - X-Ref

Menu Item Model for Menus.

canDelete($record)   X-Ref
Method to test whether a record can be deleted.

param: object    A record object.
return: boolean    True if allowed to delete the record. Defaults to the permission set in the component.

canEditState($record)   X-Ref
Method to test whether a record can be deleted.

param: object    A record object.
return: boolean    True if allowed to change the state of the record. Defaults to the permission set in the component.

getTable($type = 'MenuType', $prefix = 'JTable', $config = array()   X-Ref
Returns a Table object, always creating it

param: type    The table type to instantiate
param: string    A prefix for the table class name. Optional.
param: array    Configuration array for model. Optional.
return: JTable    A database object

populateState()   X-Ref
Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.


getItem($itemId = null)   X-Ref
Method to get a menu item.

param: integer    The id of the menu item to get.
return: mixed    Menu item data object on success, false on failure.

getForm($data = array()   X-Ref
Method to get the menu item form.

param: array    $data        Data for the form.
param: boolean    $loadData    True if the form is to load its own data (default case), false if not.
return: JForm    A JForm object on success, false on failure

loadFormData()   X-Ref
Method to get the data that should be injected in the form.

return: mixed    The data for the form.

save($data)   X-Ref
Method to save the form data.

param: array    The form data.
return: boolean    True on success.

delete($itemIds)   X-Ref
Method to delete groups.

param: array    An array of item ids.
return: boolean    Returns true on success, false on failure.

getModules()   X-Ref
Gets a list of all mod_mainmenu modules and collates them by menutype

return: array

cleanCache($group = null, $client_id = 0)   X-Ref
Custom clean cache method




Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1