[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

(no description)

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

Defines 1 class

LanguageModel:: (8 methods):
  __construct()
  getTable()
  populateState()
  getItem()
  getForm()
  loadFormData()
  save()
  cleanCache()


Class: LanguageModel  - X-Ref

Languages Component Language Model

__construct($config = array()   X-Ref
Constructor.

param: array                $config   An optional associative array of configuration settings.
param: MVCFactoryInterface  $factory  The factory.

getTable($name = '', $prefix = '', $options = array()   X-Ref
Override to get the table.

param: string  $name     Name of the table.
param: string  $prefix   Table name prefix.
param: array   $options  Array of options.
return: Table

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

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

return: void

getItem($langId = null)   X-Ref
Method to get a member item.

param: integer  $langId  The id of the member to get.
return: mixed  User data object on success, false on failure.

getForm($data = array()   X-Ref
Method to get the group 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.

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

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

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

param: string   $group     Optional cache group name.
param: integer  $clientId  @deprecated   5.0   No longer used.
return: void



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