[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_languages/src/Model/ -> OverrideModel.php (summary)

(no description)

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

Defines 1 class

OverrideModel:: (5 methods):
  getForm()
  loadFormData()
  getItem()
  save()
  populateState()


Class: OverrideModel  - X-Ref

Languages Override Model

getForm($data = array()   X-Ref
Method to get the record 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: \Joomla\CMS\Form\Form|bool  A Form 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.

getItem($pk = null)   X-Ref
Method to get a single record.

param: string  $pk  The key name.
return: mixed   Object on success, false otherwise.

save($data, $oppositeClient = false)   X-Ref
Method to save the form data.

param: array    $data            The form data.
param: boolean  $oppositeClient  Indicates whether the override should not be created for the current client.
return: boolean  True on success, false otherwise.

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

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

return: void



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