class LibraryAdapter extends InstallerAdapter

Library installer

Properties

string $manifest Copy of the XML manifest file. from InstallerAdapter

Methods

__construct( JAdapter $parent, JDatabaseDriver $db, array $options = array())

Constructor

Installer
getParent()

Retrieves the parent object.

boolean
discover_install()

Generic discover_install method for extensions

boolean
getDiscoverInstallSupported()

Checks if the adapter supports discover_install

string
getElement( string $element = null)

Get the filtered extension element from the manifest

getManifest()

Get the manifest object.

string
getName()

Get the filtered component name from the manifest

string
getRoute()

Get the install route being followed

boolean|integer
install()

Generic install method for extensions

void
prepareDiscoverInstall()

Prepares the adapter for a discover_install task

setManifest( object $manifest)

Set the manifest object.

setRoute( string $route)

Set the install route being followed

boolean|integer
update()

Custom update method

void
loadLanguage( string $path = null)

Custom loadLanguage method

boolean
uninstall( string $id)

Custom uninstall method

array
discover()

Custom discover method

boolean
refreshManifestCache()

Refreshes the extension table cache

Details

__construct( JAdapter $parent, JDatabaseDriver $db, array $options = array())

Constructor

Parameters

JAdapter $parent Parent object
JDatabaseDriver $db Database object
array $options Configuration Options

Installer getParent()

Retrieves the parent object.

Return Value

Installer

boolean discover_install()

Generic discover_install method for extensions

Return Value

boolean True on success

boolean getDiscoverInstallSupported()

Checks if the adapter supports discover_install

Return Value

boolean

string getElement( string $element = null)

Get the filtered extension element from the manifest

Parameters

string $element Optional element name to be converted

Return Value

string The filtered element

SimpleXMLElement getManifest()

Get the manifest object.

Return Value

SimpleXMLElement Manifest object

string getName()

Get the filtered component name from the manifest

Return Value

string The filtered name

string getRoute()

Get the install route being followed

Return Value

string The install route

boolean|integer install()

Generic install method for extensions

Return Value

boolean|integer The extension ID on success, boolean false on failure

void prepareDiscoverInstall()

Prepares the adapter for a discover_install task

Return Value

void

InstallerAdapter setManifest( object $manifest)

Set the manifest object.

Parameters

object $manifest The manifest object

Return Value

InstallerAdapter Instance of this class to support chaining

InstallerAdapter setRoute( string $route)

Set the install route being followed

Parameters

string $route The install route being followed

Return Value

InstallerAdapter Instance of this class to support chaining

boolean|integer update()

Custom update method

Return Value

boolean|integer The extension ID on success, boolean false on failure

void loadLanguage( string $path = null)

Custom loadLanguage method

Parameters

string $path The path where to find language files.

Return Value

void

boolean uninstall( string $id)

Custom uninstall method

Parameters

string $id The id of the library to uninstall.

Return Value

boolean True on success

array discover()

Custom discover method

Return Value

array Extension list of extensions available

boolean refreshManifestCache()

Refreshes the extension table cache

Return Value

boolean Result of operation, true if updated, false on failure