![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
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 () | |
Language Installer model for the Joomla Core Installer.
| __construct | ( | ) |
Constructor: Deletes the default installation config file and recreates it with the good config file.
Références $config, JPATH_SITE, et null.
| addAllCategoriesMenuItem | ( | $itemLanguage | ) |
Add AllCategories Menu Item for new router.
| stdClass | $itemLanguage | Language Object. |
Références $title, et JPATH_ADMINISTRATOR.
| addArticle | ( | $itemLanguage, | |
| $categoryId | |||
| ) |
Create an article in a specific language.
| stdClass | $itemLanguage | Language Object. |
| integer | $categoryId | The id of the category where we want to add the article. |
Références $article, $currentDate, $data, $db, $query, $title, JPATH_ADMINISTRATOR, et json_encode.
| addAssociations | ( | $groupedAssociations | ) |
| addBlogMenuItem | ( | $itemLanguage, | |
| $categoryId | |||
| ) |
Add Blog Menu Item.
| stdClass | $itemLanguage | Language Object. |
| integer | $categoryId | The id of the category displayed by the blog. |
Références $title, et JPATH_ADMINISTRATOR.
| addCategory | ( | $itemLanguage | ) |
Method create a category for a specific language.
| stdClass | $itemLanguage | Language Object. |
Références $category, $data, $title, et JPATH_ADMINISTRATOR.
| addFeaturedMenuItem | ( | $itemLanguage | ) |
Add Featured Menu Item.
| stdClass | $itemLanguage | Language Object. |
Références $title, et JPATH_ADMINISTRATOR.
| addLanguage | ( | $itemLanguage, | |
| $sefLangString | |||
| ) |
Add a Content Language.
| stdClass | $itemLanguage | Language Object. |
| string | $sefLangString | String to use for SEF so it doesn't conflict. |
| addMenuGroup | ( | $itemLanguage | ) |
Add Menu Group.
| stdClass | $itemLanguage | Language Object. |
Références JPATH_ADMINISTRATOR, et JLoader\registerPrefix().
| addModuleInModuleMenu | ( | $moduleId | ) |
| addModuleLanguageSwitcher | ( | ) |
| addModuleMenu | ( | $itemLanguage | ) |
Add Module Menu.
| stdClass | $itemLanguage | Language Object. |
Références $title.
|
protected |
Compare two languages in order to sort them.
| object | $lang1 | The first language. |
| object | $lang2 | The second language. |
| disableModuleMainMenu | ( | ) |
|
protected |
| enableModule | ( | $moduleName | ) |
| enablePlugin | ( | $pluginName | ) |
|
private |
|
protected |
Get the client object of Administrator or Frontend.
| string | $client | Name of the client object. |
Références $client.
| getForm | ( | $view = null | ) |
|
protected |
| getInstalledlangsAdministrator | ( | ) |
Get Languages item data for the Administrator.
| getInstalledlangsFrontend | ( | ) |
Get Languages item data for the Frontend.
| getItems | ( | ) |
|
protected |
|
protected |
Gets the manifest file of a selected language from a the language list in an update server.
| integer | $uid | The id of the language in the #__updates table. |
| getOptions | ( | ) |
Get the current setup options from the session.
|
protected |
Finds the URL of the package to download.
| string | $remoteManifest | URL to the manifest XML file of the remote package. |
|
protected |
| 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/
| stdClass | $itemLanguage | Language Object. |
| stdClass[] | $siteLanguages All Language Objects. |
| install | ( | $lids | ) |
| publishContentLanguages | ( | ) |
| setDefault | ( | $language, | |
$clientName = 'administrator' |
|||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |