Class JInstallerPackage

Description

Package installer

  • since: 11.1

Located in /libraries/joomla/installer/adapters/package.php (line 22)

JObject
   |
   --JAdapterInstance
      |
      --JInstallerPackage
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 31)

Method of system

  • since: 11.1
  • access: protected

Inherited Variables

Inherited from JAdapterInstance

JAdapterInstance::$db
JAdapterInstance::$parent

Inherited from JObject

JObject::$_errors
Methods
install (line 61)

Custom install method

  • return: The extension id
  • since: 11.1
  • access: public
int install ()
loadLanguage (line 42)

Load language from a path

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

Refreshes the extension table cache

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

Custom uninstall method

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

Updates a package

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

  • since: 11.1
  • access: public
void update ()
_getExtensionID (line 494)

Gets the extension id.

  • since: 11.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()
JObject::__toString()

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