Back to Joomla project (class list)

Class LanguageAdapter - list of methods

Language installer

Extends

Package: Joomla\CMS\Installer\Adapter
Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Installer/Adapter/LanguageAdapter.php
Project: Joomla

Method Summary

protected void
()

Method to copy the extension's base files from the `<files>` tag(s) and the manifest file
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: copyBaseFiles Source Code

protected void
()

Method to finalise the installation processing
Returns
  • void
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: finaliseInstall Source Code

protected bool
()

Method to finalise the uninstallation processing
Returns
  • bool
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: finaliseUninstall Source Code

protected void
()

Removes this extension's files
Returns
  • void
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: removeExtensionFiles Source Code

protected void
()

Method to do any prechecks and setup the install paths for the extension
Returns
  • void
Since
  • 3.4
Show source code of this method: setupInstallPaths Source Code

protected void
()

Method to do any prechecks and setup the uninstall job
Returns
  • void
Since
  • 4.0.0
Show source code of this method: setupUninstall Source Code

protected void
()

Method to store the extension to the database
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: storeExtension Source Code

public bool|int
()

Custom install method
Returns
  • bool|int The extension ID on success, boolean false on failure
Since
  • 3.1
Show source code of this method: install Source Code

protected bool|int
(mixed $cname, mixed $basePath, mixed $clientId, mixed &$element)

Install function that is designed to handle individual clients
Parameters
  • string $cname Cname @todo: not used
  • string $basePath The base name.
  • int $clientId The client id.
  • object & $element The XML element.
Returns
  • bool|int The extension ID on success, boolean false on failure
Since
  • 3.1
Show source code of this method: _install Source Code

protected string
(mixed $itemLanguageTag)

Gets a unique language SEF string.
Parameters
  • string $itemLanguageTag Language Tag.
Returns
  • string
Since
  • 3.7.0
Show source code of this method: getSefString Source Code

public bool
()

Custom update method
Returns
  • bool True on success, false on failure
Since
  • 3.1
Show source code of this method: update Source Code

public \Joomla\CMS\Table\Extension[]
()

Custom discover method Finds language files
Returns
  • \Joomla\CMS\Table\Extension[] Array of discovered extensions.
Since
  • 3.1
Show source code of this method: discover Source Code

public int
()

Custom discover install method Basically updates the manifest cache and leaves everything alone
Returns
  • int The extension id
Since
  • 3.1
Show source code of this method: discover_install Source Code

public bool
()

Refreshes the extension table cache
Returns
  • bool result of operation, true if updated, false on failure
Since
  • 3.1
Show source code of this method: refreshManifestCache Source Code

private void
()

Resets user language to default language
Returns
  • void
Since
  • 4.0.0
Show source code of this method: resetUserLanguage Source Code

protected
(mixed $tag)

Create an unpublished content language.
Parameters
  • $tag string The language tag
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: createContentLanguage Source Code

Properties Summary

protected bool
$core
Core language pack flag
Since
  • 3.0.0
protected string
$tag
The language tag for the package
Since
  • 4.0.0
protected bool
$ignoreUninstallQueries
Flag indicating the uninstall process should not run SQL queries
Since
  • 4.0.0

Tags Summary

Since
3.1