Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe LanguageAdapter
+ Graphe d'héritage de LanguageAdapter:

Fonctions membres publiques

 install ()
 
 update ()
 
 uninstall ($eid)
 
 discover ()
 
 discover_install ()
 
 refreshManifestCache ()
 
- Fonctions membres publiques hérités de InstallerAdapter
 __construct (Installer $parent, \JDatabaseDriver $db, array $options=array())
 
 discover_install ()
 
 getDiscoverInstallSupported ()
 
 getElement ($element=null)
 
 getManifest ()
 
 getName ()
 
 getRoute ()
 
 install ()
 
 prepareDiscoverInstall ()
 
 setManifest ($manifest)
 
 setRoute ($route)
 
 update ()
 

Fonctions membres protégées

 copyBaseFiles ()
 
 setupInstallPaths ()
 
 storeExtension ()
 
 _install ($cname, $basePath, $clientId, &$element)
 
 getSefString ($itemLanguageTag)
 
- Fonctions membres protégées hérités de InstallerAdapter
 canUninstallPackageChild ($packageId)
 
 checkExistingExtension ()
 
 checkExtensionInFilesystem ()
 
 copyBaseFiles ()
 
 createExtensionRoot ()
 
 doDatabaseTransactions ()
 
 doLoadLanguage ($extension, $source, $base=JPATH_ADMINISTRATOR)
 
 getScriptClassName ()
 
 parseQueries ()
 
 parseOptionalTags ()
 
 setupInstallPaths ()
 
 setupScriptfile ()
 
 setupUpdates ()
 
 storeExtension ()
 
 triggerManifestScript ($method)
 

Attributs protégés

 $core = false
 
- Attributs protégés hérités de InstallerAdapter
 $currentExtensionId = null
 
 $element = null
 
 $extension = null
 
 $extensionMessage = ''
 
 $manifest_script = null
 
 $name = null
 
 $route = 'install'
 
 $supportsDiscoverInstall = true
 
 $type
 

Membres hérités additionnels

- Champs de données hérités de InstallerAdapter
 $manifest = null
 

Description détaillée

Language installer

Depuis
3.1

Documentation des fonctions membres

◆ _install()

_install (   $cname,
  $basePath,
  $clientId,
$element 
)
protected

Install function that is designed to handle individual clients

Paramètres
string$cnameCname
string$basePathThe base name.
integer$clientIdThe client id.
object&$elementThe 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()

copyBaseFiles ( )
protected

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

Custom discover method Finds language files

Renvoie
boolean True on success
Depuis
3.1

Références $extension, $language, $results, Table\getInstance(), JPATH_ADMINISTRATOR, JPATH_SITE, json_encode, et Installer\parseXMLInstallFile().

◆ discover_install()

discover_install ( )

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

Renvoie
integer The extension id
Depuis
3.1

Références $client, ApplicationHelper\getClientInfo(), json_encode, parent, et Installer\parseXMLInstallFile().

◆ 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
string$itemLanguageTagLanguage Tag.
Renvoie
string
Depuis
3.7.0

Références $db, $langs, et $query.

◆ install()

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.

Renvoie
boolean|integer The extension ID on success, boolean false on failure
Depuis
3.1

Références $basePath, $client, $clientId, ApplicationHelper\getClientInfo(), JPATH_ADMINISTRATOR, JPATH_SITE, null, et parent.

◆ refreshManifestCache()

refreshManifestCache ( )

Refreshes the extension table cache

Renvoie
boolean result of operation, true if updated, false on failure
Depuis
3.1

Références $client, ApplicationHelper\getClientInfo(), json_encode, parent, et Installer\parseXMLInstallFile().

◆ setupInstallPaths()

setupInstallPaths ( )
protected

Method to do any prechecks and setup the install paths for the extension

Renvoie
void
Depuis
3.4

◆ storeExtension()

storeExtension ( )
protected

Method to store the extension to the database

Renvoie
void
Depuis
3.4
Exceptions

◆ uninstall()

uninstall (   $eid)

Custom uninstall method

Paramètres
string$eidThe 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()

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.

Documentation des champs

◆ $core

$core = false
protected

La documentation de cette classe a été générée à partir du fichier suivant :