Class InstallerModelLanguages

Description

Languages Installer Model

  • since: 2.5.7

Located in /administrator/components/com_installer/models/languages.php (line 20)

JObject
   |
   --JModelLegacy
      |
      --JModelList
         |
         --InstallerModelLanguages
Method Summary
 InstallerModelLanguages __construct ([array $config = array()])
 bool findLanguages ([int $cache_timeout = 0])
 string getStoreId ([string $id = ''])
 bool install (array $lids)
 void populateState ([string $ordering = 'name'], [string $direction = 'asc'])
 array|bool _downloadPackage (string $url)
 string _getLanguageManifest (int $uid)
 string|bool _getPackageUrl (string $remote_manifest)
Variables
Methods
Constructor __construct (line 29)

Constructor override, defines a white list of column filters.

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

Redefinition of:
JModelList::__construct()
Constructor.
findLanguages (line 128)

Method to find available languages in the Accredited Languages Update Site.

  • since: 2.5.7
  • access: public
bool findLanguages ([int $cache_timeout = 0])
  • int $cache_timeout: time before refreshing the cached updates
getStoreId (line 87)

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

  • return: A store id.
  • since: 2.5.7
  • 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.
install (line 150)

Install languages in the system.

  • since: 2.5.7
  • access: public
bool install (array $lids)
  • array $lids: array of language ids selected in the list
populateState (line 107)

Method to auto-populate the model state.

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

  • since: 2.5.7
  • access: protected
void populateState ([string $ordering = 'name'], [string $direction = 'asc'])
  • string $ordering: list order
  • string $direction: direction in the list

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

Download a language package from a URL and unpack it in the tmp folder.

  • return: Package details or false on failure
  • since: 2.5.7
  • access: protected
array|bool _downloadPackage (string $url)
  • string $url: hola
_getLanguageManifest (line 223)

Gets the manifest file of a selected language from a the language list in a update server.

  • since: 2.5.7
  • access: protected
string _getLanguageManifest (int $uid)
  • int $uid: the id of the language in the #__updates table
_getListQuery (line 49)

Method to get the available languages database query.

  • return: The database query
  • since: 2.5.7
  • access: protected
JDatabaseQuery _getListQuery ()

Redefinition of:
JModelList::_getListQuery()
Method to cache the last query constructed.
_getPackageUrl (line 240)

Finds the url of the package to download.

  • since: 2.5.7
  • access: protected
string|bool _getPackageUrl (string $remote_manifest)
  • string $remote_manifest: url to the manifest XML file of the remote package

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:06:39 +0100 by phpDocumentor 1.4.3