[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_languages/src/Model/ -> OverridesModel.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: 254 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OverridesModel:: (6 methods):
  __construct()
  getOverrides()
  getTotal()
  populateState()
  delete()
  purge()


Class: OverridesModel  - X-Ref

Languages Overrides Model

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

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

getOverrides($all = false)   X-Ref
Retrieves the overrides data

param: boolean  $all  True if all overrides shall be returned without considering pagination, defaults to false
return: array  Array of objects containing the overrides of the override.ini file

getTotal()   X-Ref
Method to get the total number of overrides.

return: integer  The total number of overrides.

populateState($ordering = 'key', $direction = 'asc')   X-Ref
Method to auto-populate the model state.

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

param: string  $ordering   An optional ordering field.
param: string  $direction  An optional direction (asc|desc).
return: void

delete($cids)   X-Ref
Method to delete one or more overrides.

param: array  $cids  Array of keys to delete.
return: integer  Number of successfully deleted overrides, boolean false if an error occurred.

purge()   X-Ref
Removes all of the cached strings from the table.

return: boolean  result of operation



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