Class LanguagesModelInstalled

Description

Languages Component Languages Model

  • since: 1.6

Located in /administrator/components/com_languages/models/installed.php (line 19)

JObject
   |
   --JModelLegacy
      |
      --JModelList
         |
         --LanguagesModelInstalled
Variable Summary
 object client $client
 array $data
 boolean|JExeption $ftp
 int $langlist
 string $option
 string $path
 int $total
 object user $user
Method Summary
 integer compareLanguages (object $lang1, object $lang2)
 object &getClient ()
 array &getData ()
 array getFolders ()
 object &getFtp ()
 string getLanguageList ()
 object &getOption ()
 string getPath ()
 string getStoreId ([string $id = ''])
 integer getTotal ()
 void populateState ([ $ordering = null], [ $direction = null])
 boolean publish ( $cid)
Variables
object client $client = null (line 24)
  • var: object
  • access: protected
array $data = null (line 44)
  • var: languages description
  • access: protected
boolean|JExeption $ftp = null (line 34)
  • var: True, if FTP settings should be shown, or an exeption
  • access: protected
int $langlist = null (line 54)
  • var: total number pf languages installed
  • access: protected
string $option = null (line 39)
  • var: option name
  • access: protected

Redefinition of:
JModelLegacy::$option
The URL option for the component.
string $path = null (line 59)
  • var: language path
  • access: protected
int $total = null (line 49)
  • var: total number pf languages
  • access: protected
object user $user = null (line 29)
  • var: object
  • access: protected

Inherited Variables

Inherited from JModelList

JModelList::$cache
JModelList::$context
JModelList::$filterFormName
JModelList::$filter_fields
JModelList::$htmlFormName
JModelList::$query

Inherited from JModelLegacy

JModelLegacy::$event_clean_cache
JModelLegacy::$name
JModelLegacy::$state
JModelLegacy::$_db
JModelLegacy::$__state_set

Inherited from JObject

JObject::$_errors
Methods
compareLanguages (line 380)

Method to compare two languages in order to sort them

  • since: 1.6
  • access: protected
integer compareLanguages (object $lang1, object $lang2)
  • object $lang1: the first language
  • object $lang2: the second language
getClient (line 111)

Method to get the client object

  • since: 1.6
  • access: public
object &getClient ()
getData (line 156)

Method to get Languages item data

  • since: 1.6
  • access: public
array &getData ()
getFolders (line 342)

Method to get the folders

  • return: Languages folders
  • since: 1.6
  • access: protected
array getFolders ()
getFtp (line 127)

Method to get the ftp credentials

  • since: 1.6
  • access: public
object &getFtp ()
getLanguageList (line 239)

Method to get installed languages data.

  • return: An SQL query
  • since: 1.6
  • access: protected
string getLanguageList ()
getOption (line 143)

Method to get the option

  • since: 1.6
  • access: public
object &getOption ()
getPath (line 360)

Method to get the path

  • return: The path to the languages folders
  • since: 1.6
  • access: protected
string getPath ()
getStoreId (line 97)

Method to get a store id based on model configuration state.

This is necessary because the model is used by the component and different modules that might need different sets of data or different ordering requirements.

  • return: A store id.
  • since: 1.6
  • access: protected
string getStoreId ([string $id = ''])
  • string $id: A prefix for the store id.

Redefinition of:
JModelList::getStoreId()
Method to get a store id based on the model configuration state.
getTotal (line 272)

Method to get the total number of Languages items

  • since: 1.6
  • access: public
integer getTotal ()

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

Method to auto-populate the model state.

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

  • since: 1.6
  • access: protected
void populateState ([ $ordering = null], [ $direction = null])
  • $ordering
  • $direction

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

Method to set the default language

  • since: 1.6
  • access: public
boolean publish ( $cid)
  • $cid

Inherited Methods

Inherited From JModelList

 JModelList::__construct()
 JModelList::getActiveFilters()
 JModelList::getFilterForm()
 JModelList::getItems()
 JModelList::getListQuery()
 JModelList::getPagination()
 JModelList::getStart()
 JModelList::getStoreId()
 JModelList::getTotal()
 JModelList::getUserStateFromRequest()
 JModelList::loadForm()
 JModelList::loadFormData()
 JModelList::populateState()
 JModelList::preprocessForm()
 JModelList::_getListQuery()

Inherited From JModelLegacy

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

Inherited From JObject

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

Documentation generated on Tue, 19 Nov 2013 15:05:40 +0100 by phpDocumentor 1.4.3