Language installer
- Depuis
- 3.1
◆ _install()
_install |
( |
|
$cname, |
|
|
|
$basePath, |
|
|
|
$clientId, |
|
|
& |
$element |
|
) |
| |
|
protected |
Install function that is designed to handle individual clients
- Paramètres
-
string | $cname | Cname |
string | $basePath | The base name. |
integer | $clientId | The client id. |
object | &$element | The XML element. |
- Renvoie
- boolean|integer The extension ID on success, boolean false on failure
- Depuis
- 3.1
Références $basePath, $clientId, $description, $file, $files, $name, $row, elseif, Table\getInstance(), JPATH_INSTALLATION, JPATH_SITE, name, parent, et LanguageHelper\parseXMLLanguageFile().
◆ copyBaseFiles()
Method to copy the extension's base files from the <files>
tag(s) and the manifest file
- Renvoie
- void
- Depuis
- 3.4
- Exceptions
-
◆ discover()
◆ discover_install()
◆ getSefString()
getSefString |
( |
|
$itemLanguageTag | ) |
|
|
protected |
Gets a unique language SEF string.
This function checks other existing language with the same code, if they exist provides a unique SEF name. For instance: en-GB, en-US and en-AU will share the same SEF code by default: www.mywebsite.com/en/ To avoid this conflict, this function creates an specific SEF in case of existing conflict: For example: www.mywebsite.com/en-au/
- Paramètres
-
- Renvoie
- string
- Depuis
- 3.7.0
Références $db, $langs, et $query.
◆ install()
◆ refreshManifestCache()
◆ setupInstallPaths()
Method to do any prechecks and setup the install paths for the extension
- Renvoie
- void
- Depuis
- 3.4
◆ storeExtension()
Method to store the extension to the database
- Renvoie
- void
- Depuis
- 3.4
- Exceptions
-
◆ uninstall()
Custom uninstall method
- Paramètres
-
string | $eid | The tag of the language to uninstall |
- Renvoie
- boolean True on success
- Depuis
- 3.1
Références $client, $count, $db, $extension, $params, $path, $query, $user, $users, ApplicationHelper\getClientInfo(), Table\getInstance(), ComponentHelper\getParams(), et parent.
◆ update()
Custom update method
- Renvoie
- boolean True on success, false on failure
- Depuis
- 3.1
Finalization and Cleanup Section
Références $basePath, $client, $clientId, $file, $name, $row, ApplicationHelper\getClientInfo(), Table\getInstance(), if, null, et parent.
◆ $core
La documentation de cette classe a été générée à partir du fichier suivant :