[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_config/src/Model/ -> ComponentModel.php (summary)

(no description)

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

Defines 1 class

ComponentModel:: (5 methods):
  populateState()
  getForm()
  loadFormData()
  getComponent()
  save()


Class: ComponentModel  - X-Ref

Model for component configuration

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

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

return: void

getForm($data = array()   X-Ref
Method to get a form object.

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: mixed  A JForm object on success, false on failure

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

return: array  The default data is an empty array.

getComponent()   X-Ref
Get the component information.

return: object

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

param: array  $data  An array containing all global config data.
return: boolean  True on success, false on failure.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer