Class JInstallerAdapterLanguage

Description

Language installer

  • since: 3.1

Located in /libraries/cms/installer/adapter/language.php (line 22)

JObject
   |
   --JAdapterInstance
      |
      --JInstallerAdapterLanguage
Direct descendents
Class Description
 class JInstallerLanguage Deprecated class placeholder. You should use JInstallerAdapterLanguage instead.
Variable Summary
 boolean $core
Method Summary
 boolean discover ()
 integer discover_install ()
 boolean install ()
 mixed uninstall (string $eid)
 boolean update ()
 boolean _install (string $cname, string $basePath, integer $clientId, object &$element)
Variables
boolean $core = false (line 30)

Core language pack flag

  • since: 12.1
  • access: protected

Inherited Variables

Inherited from JAdapterInstance

JAdapterInstance::$db
JAdapterInstance::$parent

Inherited from JObject

JObject::$_errors
Methods
discover (line 548)

Custom discover method Finds language files

  • return: True on success
  • since: 3.1
  • access: public
boolean discover ()
discover_install (line 599)

Custom discover install method Basically updates the manifest cache and leaves everything alone

  • return: The extension id
  • since: 3.1
  • access: public
integer discover_install ()
install (line 43)

Custom install method

Note: This behaves badly due to hacks made in the middle of 1.5.x to add the ability to install multiple distinct packs in one install. The preferred method is to use a package to install multiple language packs.

  • return: True on success
  • since: 3.1
  • access: public
boolean install ()
refreshManifestCache (line 636)

Refreshes the extension table cache

  • return: result of operation, true if updated, false on failure
  • since: 3.1
  • access: public
boolean refreshManifestCache ()
uninstall (line 424)

Custom uninstall method

  • return: Return value for uninstall method in component uninstall file
  • since: 3.1
  • access: public
mixed uninstall (string $eid)
  • string $eid: The tag of the language to uninstall
update (line 281)

Custom update method

  • return: True on success, false on failure
  • since: 3.1
  • access: public
boolean update ()
_install (line 99)

Install function that is designed to handle individual clients

  • since: 3.1
  • access: protected
boolean _install (string $cname, string $basePath, integer $clientId, object &$element)
  • string $cname: Cname @todo: not used
  • string $basePath: The base name.
  • integer $clientId: The client id.
  • object &$element: The XML element.

Inherited Methods

Inherited From JAdapterInstance

 JAdapterInstance::__construct()
 JAdapterInstance::getParent()

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