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é
|
Fonctions membres publiques statiques | |
static | createLanguageList ($actualLanguage, $basePath=JPATH_BASE, $caching=false, $installed=false) |
static | detectLanguage () |
static | getLanguages ($key='default') |
static | getInstalledLanguages ($clientId=null, $processMetaData=false, $processManifest=false, $pivot='element', $orderField=null, $orderDirection=null) |
static | getContentLanguages ($publishedStates=array(1), $checkInstalled=true, $pivot='lang_code', $orderField=null, $orderDirection=null) |
static | saveToIniFile ($fileName, array $strings) |
static | exists ($lang, $basePath=JPATH_BASE) |
static | getMetadata ($lang) |
static | getKnownLanguages ($basePath=JPATH_BASE) |
static | getLanguagePath ($basePath=JPATH_BASE, $language=null) |
static | parseLanguageFiles ($dir=null) |
static | parseXMLLanguageFile ($path) |
Language helper class
|
static |
Builds a list of the system languages which can be used in a select option
string | $actualLanguage | Client key for the area |
string | $basePath | Base path to use |
boolean | $caching | True if caching is used |
boolean | $installed | Get only installed languages |
Références $basePath, $clientId, $language, Language\$languages, $list, Language\$metadata, JPATH_ADMINISTRATOR, et null.
Référencé par LanguageHelperWrapper\createLanguageList().
|
static |
Tries to detect the language.
Références elseif.
Référencé par LanguageHelperWrapper\detectLanguage(), CMSHelper\getCurrentLanguage(), et ContentHelper\getCurrentLanguage().
|
static |
Checks if a language exists.
This is a simple, quick check for the directory that should contain language files for the given user.
string | $lang | Language to check. |
string | $basePath | Optional path to check. |
Références $basePath, Language\$lang, $path, et Language\$paths.
Référencé par Language\exists().
|
static |
Get a list of content languages.
array | $publishedStates | Array with the content language published states. Empty array for all. |
boolean | $checkInstalled | Check if the content language is installed. |
string | $pivot | The pivot of the returning array. |
string | $orderField | Field to order the results. |
string | $orderDirection | Direction to order the results. |
Références $db, $key, $language, Language\$languages, $query, elseif, null, ArrayHelper\pivot(), et ArrayHelper\sortObjects().
Référencé par CategoriesControllerAjax\fetchAssociations(), ContentControllerAjax\fetchAssociations(), MenusControllerAjax\fetchAssociations(), NewsfeedsControllerAjax\fetchAssociations(), ContactControllerAjax\fetchAssociations(), AssociationsHelper\getAssociationHtmlList(), AssociationsHelper\getContentLanguages(), et AdminModel\redirectToAssociations().
|
static |
Get a list of installed languages.
integer | $clientId | The client app id. |
boolean | $processMetaData | Fetch Language metadata. |
boolean | $processManifest | Fetch Language manifest. |
string | $pivot | The pivot of the returning array. |
string | $orderField | Field to order the results. |
string | $orderDirection | Direction to order the results. |
Références $clientId, $db, Language\$lang, $language, Language\$languages, $query, JPATH_ADMINISTRATOR, JPATH_SITE, null, ArrayHelper\pivot(), et ArrayHelper\sortObjects().
Référencé par ModuleHelper\isAdminMultilang().
|
static |
Returns a list of known languages for an area
string | $basePath | The basepath to use |
Références $basePath.
Référencé par Language\getKnownLanguages().
|
static |
Get the path to a language
string | $basePath | The basepath to use. |
string | $language | The language tag. |
Références $basePath, et $language.
Référencé par Language\getLanguagePath(), et Language\load().
|
static |
Get available languages
string | $key | Array key |
Références $db, $key, Language\$lang, Language\$languages, Language\$metadata, $query, et JPATH_BASE.
Référencé par LanguageHelperWrapper\getLanguages().
|
static |
Returns an associative array holding the metadata.
string | $lang | The name of the language. |
Références $file, Language\$lang, JPATH_BASE, et null.
Référencé par Language\__construct(), Language\getMetadata(), et Language\setLanguage().
|
static |
Searches for language directories within a certain base dir.
string | $dir | directory of files. |
Références $file, Language\$languages, et Language\$metadata.
Référencé par Language\parseLanguageFiles().
|
static |
Parse XML file for language information.
string | $path | Path to the XML files. |
Références Language\$metadata, et $path.
Référencé par LanguageAdapter\_install(), et Language\parseXMLLanguageFile().
|
static |
Save strings to a language file.
string | $fileName | The language ini file path. |
array | $strings | The array of strings. |
Références $key, Language\$strings, JPATH_LIBRARIES, et JLoader\register().