Class JInstallerAdapterPackage

Description

Package installer

  • since: 3.1

Located in /libraries/cms/installer/adapter/package.php (line 21)

JObject
   |
   --JAdapterInstance
      |
      --JInstallerAdapterPackage
Direct descendents
Class Description
 class JInstallerPackage Deprecated class placeholder. You should use JInstallerAdapterPackage instead.
Variable Summary
 string $route
Method Summary
 int install ()
 void loadLanguage (string $path)
 boolean uninstall (integer $id)
 void update ()
 integer _getExtensionID (string $type, string $id, integer $client, string $group)
Variables
string $route = 'install' (line 30)

Method of system

  • since: 3.1
  • access: protected
object $scriptElement = null (line 38)

<scriptfile> element of the extension manifest

  • since: 3.1
  • access: protected

Inherited Variables

Inherited from JAdapterInstance

JAdapterInstance::$db
JAdapterInstance::$parent

Inherited from JObject

JObject::$_errors
Methods
install (line 66)

Custom install method

  • return: The extension id
  • since: 3.1
  • access: public
int install ()
loadLanguage (line 49)

Load language from a path

  • since: 3.1
  • access: public
void loadLanguage (string $path)
  • string $path: The path of the language.
refreshManifestCache (line 602)

Refreshes the extension table cache

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

Custom uninstall method

  • return: True on success
  • since: 3.1
  • access: public
boolean uninstall (integer $id)
  • integer $id: The id of the package to uninstall.
update (line 388)

Updates a package

The only difference between an update and a full install is how we handle the database

  • since: 3.1
  • access: public
void update ()
_getExtensionID (line 554)

Gets the extension id.

  • since: 3.1
  • access: protected
integer _getExtensionID (string $type, string $id, integer $client, string $group)
  • string $type: The extension type.
  • string $id: The name of the extension (the element field).
  • integer $client: The application id (0: Joomla CMS site; 1: Joomla CMS administrator).
  • string $group: The extension group (mainly for plugins).

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