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 InstallationModelLanguages
+ Graphe d'héritage de InstallationModelLanguages:

Fonctions membres publiques

 __construct ()
 
 getItems ()
 
 install ($lids)
 
 getInstalledlangsAdministrator ()
 
 getInstalledlangsFrontend ()
 
 setDefault ($language, $clientName='administrator')
 
 getOptions ()
 
 getForm ($view=null)
 
 enablePlugin ($pluginName)
 
 addModuleLanguageSwitcher ()
 
 addModuleInModuleMenu ($moduleId)
 
 publishContentLanguages ()
 
 getSefString ($itemLanguage, $siteLanguages)
 
 addLanguage ($itemLanguage, $sefLangString)
 
 addMenuGroup ($itemLanguage)
 
 addFeaturedMenuItem ($itemLanguage)
 
 addAllCategoriesMenuItem ($itemLanguage)
 
 addModuleMenu ($itemLanguage)
 
 disableModuleMainMenu ()
 
 enableModule ($moduleName)
 
 addCategory ($itemLanguage)
 
 addArticle ($itemLanguage, $categoryId)
 
 addBlogMenuItem ($itemLanguage, $categoryId)
 
 addAssociations ($groupedAssociations)
 
- Fonctions membres publiques hérités de JModelBase
 __construct (Registry $state=null)
 
 getState ()
 
 setState (Registry $state)
 

Fonctions membres protégées

 getLanguageManifest ($uid)
 
 getPackageUrl ($remoteManifest)
 
 downloadPackage ($url)
 
 getInstalledlangs ($clientName='administrator')
 
 getLanguageList ($clientId=1)
 
 compareLanguages ($lang1, $lang2)
 
 getPath ()
 
 getClient ($client='administrator')
 
- Fonctions membres protégées hérités de JModelBase
 loadState ()
 

Attributs protégés

 $client
 
 $data
 
 $path
 
 $langlist
 
 $adminId
 
- Attributs protégés hérités de JModelBase
 $state
 

Fonctions membres privées

 getAdminId ()
 

Description détaillée

Language Installer model for the Joomla Core Installer.

Depuis
3.1

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Constructor: Deletes the default installation config file and recreates it with the good config file.

Depuis
3.1

Références $config, JPATH_SITE, et null.

Documentation des fonctions membres

◆ addAllCategoriesMenuItem()

addAllCategoriesMenuItem (   $itemLanguage)

Add AllCategories Menu Item for new router.

Paramètres
stdClass$itemLanguageLanguage Object.
Renvoie
JTable|boolean Menu Item Object. False otherwise.
Depuis
3.8.0

Références $title, et JPATH_ADMINISTRATOR.

◆ addArticle()

addArticle (   $itemLanguage,
  $categoryId 
)

Create an article in a specific language.

Paramètres
stdClass$itemLanguageLanguage Object.
integer$categoryIdThe id of the category where we want to add the article.
Renvoie
JTable|boolean Article Object. False otherwise.
Depuis
3.2

Références $article, $currentDate, $data, $db, $query, $title, JPATH_ADMINISTRATOR, et json_encode.

◆ addAssociations()

addAssociations (   $groupedAssociations)

Create the language associations.

Paramètres
array$groupedAssociationsArray of language associations for all items.
Renvoie
boolean True on success.
Depuis
3.6.1

Références $context, $db, $id, $key, $language, $query, et json_encode.

◆ addBlogMenuItem()

addBlogMenuItem (   $itemLanguage,
  $categoryId 
)

Add Blog Menu Item.

Paramètres
stdClass$itemLanguageLanguage Object.
integer$categoryIdThe id of the category displayed by the blog.
Renvoie
JTable|boolean Menu Item Object. False otherwise.
Depuis
3.8.0

Références $title, et JPATH_ADMINISTRATOR.

◆ addCategory()

addCategory (   $itemLanguage)

Method create a category for a specific language.

Paramètres
stdClass$itemLanguageLanguage Object.
Renvoie
JTable|boolean Category Object. False otherwise.
Depuis
3.2

Références $category, $data, $title, et JPATH_ADMINISTRATOR.

◆ addFeaturedMenuItem()

addFeaturedMenuItem (   $itemLanguage)

Add Featured Menu Item.

Paramètres
stdClass$itemLanguageLanguage Object.
Renvoie
JTable|boolean Menu Item Object. False otherwise.
Depuis
3.2

Références $title, et JPATH_ADMINISTRATOR.

◆ addLanguage()

addLanguage (   $itemLanguage,
  $sefLangString 
)

Add a Content Language.

Paramètres
stdClass$itemLanguageLanguage Object.
string$sefLangStringString to use for SEF so it doesn't conflict.
Renvoie
boolean
Depuis
3.2 4.0 Not used anymore.

◆ addMenuGroup()

addMenuGroup (   $itemLanguage)

Add Menu Group.

Paramètres
stdClass$itemLanguageLanguage Object.
Renvoie
boolean
Depuis
3.2

Références JPATH_ADMINISTRATOR, et JLoader\registerPrefix().

◆ addModuleInModuleMenu()

addModuleInModuleMenu (   $moduleId)

Add a Module in Module menus.

Paramètres
integer$moduleIdThe Id of module.
Renvoie
boolean
Depuis
3.2

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

◆ addModuleLanguageSwitcher()

addModuleLanguageSwitcher ( )

Enable the Language Switcher Module.

Renvoie
boolean
Depuis
3.2

Références JPATH_LIBRARIES.

◆ addModuleMenu()

addModuleMenu (   $itemLanguage)

Add Module Menu.

Paramètres
stdClass$itemLanguageLanguage Object.
Renvoie
boolean
Depuis
3.2

Références $title.

◆ compareLanguages()

compareLanguages (   $lang1,
  $lang2 
)
protected

Compare two languages in order to sort them.

Paramètres
object$lang1The first language.
object$lang2The second language.
Renvoie
integer
Depuis
3.1

◆ disableModuleMainMenu()

disableModuleMainMenu ( )

Disable Default Main Menu Module.

Renvoie
boolean
Depuis
3.2

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

◆ downloadPackage()

downloadPackage (   $url)
protected

Download a language package from a URL and unpack it in the tmp folder.

Paramètres
string$urlURL of the package.
Renvoie
array|boolean Package details or false on failure.
Depuis
3.1

Références $config, et $url.

◆ enableModule()

enableModule (   $moduleName)

Enable a module.

Paramètres
string$moduleNameThe Name of the module to activate.
Renvoie
boolean
Depuis
3.2

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

◆ enablePlugin()

enablePlugin (   $pluginName)

Enable a Joomla plugin.

Paramètres
string$pluginNameThe name of plugin.
Renvoie
boolean
Depuis
3.2

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

◆ getAdminId()

getAdminId ( )
private

Retrieve the admin user id.

Renvoie
integer|boolean One Administrator ID.
Depuis
3.2

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

◆ getClient()

getClient (   $client = 'administrator')
protected

Get the client object of Administrator or Frontend.

Paramètres
string$clientName of the client object.
Renvoie
object
Depuis
3.1

Références $client.

◆ getForm()

getForm (   $view = null)

Get the model form.

Paramètres
string$viewThe view being processed.
Renvoie
mixed JForm object on success, false on failure.
Depuis
3.1

Références $data, $form, et $view.

◆ getInstalledlangs()

getInstalledlangs (   $clientName = 'administrator')
protected

Get Languages item data.

Paramètres
string$clientNameName of the cms client.
Renvoie
array
Depuis
3.1

Références $client, $data, $file, $info, $key, $lang, $params, $path, $row, et $value.

◆ getInstalledlangsAdministrator()

getInstalledlangsAdministrator ( )

Get Languages item data for the Administrator.

Renvoie
array
Depuis
3.1

◆ getInstalledlangsFrontend()

getInstalledlangsFrontend ( )

Get Languages item data for the Frontend.

Renvoie
array List of installed languages in the frontend application.
Depuis
3.1

◆ getItems()

getItems ( )

Generate a list of language choices to install in the Joomla CMS.

Renvoie
boolean True if successful.
Depuis
3.1

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

◆ getLanguageList()

getLanguageList (   $clientId = 1)
protected

Get installed languages data.

Paramètres
integer$clientIdThe client ID to retrieve data for.
Renvoie
object The language data.
Depuis
3.1

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

◆ getLanguageManifest()

getLanguageManifest (   $uid)
protected

Gets the manifest file of a selected language from a the language list in an update server.

Paramètres
integer$uidThe id of the language in the #__updates table.
Renvoie
string
Depuis
3.1

◆ getOptions()

getOptions ( )

Get the current setup options from the session.

Renvoie
array
Depuis
3.1

◆ getPackageUrl()

getPackageUrl (   $remoteManifest)
protected

Finds the URL of the package to download.

Paramètres
string$remoteManifestURL to the manifest XML file of the remote package.
Renvoie
string|boolean
Depuis
3.1

◆ getPath()

getPath ( )
protected

Get the languages folder path.

Renvoie
string The path to the languages folders.
Depuis
3.1

Références $client, $path, et null.

◆ getSefString()

getSefString (   $itemLanguage,
  $siteLanguages 
)

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 a specific SEF in case of existing conflict: For example: www.mywebsite.com/en-au/

Paramètres
stdClass$itemLanguageLanguage Object.
stdClass[]$siteLanguages All Language Objects.
Renvoie
string
Depuis
3.2 4.0 Not used anymore.

Références $lang, et $langs.

◆ install()

install (   $lids)

Method that installs in Joomla! the selected languages in the Languages View of the installer.

Paramètres
array$lidsList of the update_id value of the languages to install.
Renvoie
boolean True if successful

Références $config, $id, $language, et $message.

◆ publishContentLanguages()

publishContentLanguages ( )

Publish the Installed Content Languages.

Renvoie
boolean
Depuis
3.7.0

Références $app.

◆ setDefault()

setDefault (   $language,
  $clientName = 'administrator' 
)

Set the default language.

Paramètres
string$languageThe language to be set as default.
string$clientNameThe name of the CMS client.
Renvoie
boolean
Depuis
3.1

Références $client, $id, $language, et $params.

Documentation des champs

◆ $adminId

$adminId
protected

◆ $client

$client
protected

◆ $data

$data
protected

◆ $langlist

$langlist
protected

◆ $path

$path
protected

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