class LanguageAdapter extends InstallerAdapter

Language 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()

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

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()

Custom install method

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

boolean
uninstall( string $eid)

Custom uninstall method

boolean
discover()

Custom discover method Finds language files

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()

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

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()

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 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

boolean uninstall( string $eid)

Custom uninstall method

Parameters

string $eid The tag of the language to uninstall

Return Value

boolean True on success

boolean discover()

Custom discover method Finds language files

Return Value

boolean True on success

boolean refreshManifestCache()

Refreshes the extension table cache

Return Value

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