Class LanguagesModelOverrides

Description

Languages Overrides Model

  • since: 2.5

Located in /administrator/components/com_languages/models/overrides.php (line 21)

JObject
   |
   --JModel
      |
      --JModelList
         |
         --LanguagesModelOverrides
Method Summary
void __construct ([array $config = array()])
int delete (array $cids)
array getLanguages ()
array getOverrides ([boolean $all = false])
int getTotal ()
void populateState ([string $ordering = null], [string $direction = null])
Variables
Methods
Constructor __construct (line 32)

Constructor

  • since: 2.5
  • access: public
void __construct ([array $config = array()])
  • array $config: An optional associative array of configuration settings

Redefinition of:
JModelList::__construct()
Constructor.
delete (line 220)

Method to delete one or more overrides

  • return: Number of successfully deleted overrides, boolean false if an error occured
  • since: 2.5
  • access: public
int delete (array $cids)
  • array $cids: Array of keys to delete
getLanguages (line 179)

Method to get all found languages of frontend and backend.

The resulting array has entries of the following style: <Language Tag>0|1 => <Language Name> - <Client Name>

  • return: Sorted associative array of languages
  • since: 2.5
  • access: public
array getLanguages ()
getOverrides (line 48)

Retrieves the overrides data

  • return: Array of objects containing the overrides of the override.ini file
  • since: 2.5
  • access: public
array getOverrides ([boolean $all = false])
  • boolean $all: True if all overrides shall be returned without considering pagination, defaults to false
getTotal (line 106)

Method to get the total number of overrides

  • return: The total number of overrides
  • since: 2.5
  • access: public
int getTotal ()

Redefinition of:
JModelList::getTotal()
Method to get the total number of items for the data set.
populateState (line 135)

Method to auto-populate the model state.

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

  • since: 2.5
  • access: protected
void populateState ([string $ordering = null], [string $direction = null])
  • string $ordering: An optional ordering field.
  • string $direction: An optional direction (asc|desc).

Redefinition of:
JModelList::populateState()
Method to auto-populate the model state.

Inherited Methods

Inherited From JModelList

JModelList::__construct()
JModelList::getItems()
JModelList::getListQuery()
JModelList::getPagination()
JModelList::getStart()
JModelList::getStoreId()
JModelList::getTotal()
JModelList::getUserStateFromRequest()
JModelList::populateState()
JModelList::_getListQuery()

Inherited From JModel

JModel::__construct()
JModel::addIncludePath()
JModel::addTablePath()
JModel::cleanCache()
JModel::getDbo()
JModel::getInstance()
JModel::getName()
JModel::getState()
JModel::getTable()
JModel::populateState()
JModel::setDbo()
JModel::setState()
JModel::_createFileName()
JModel::_createTable()
JModel::_getList()
JModel::_getListCount()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:58:28 -0500 by phpDocumentor 1.4.4