Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onSampledataGetOverview () | |
onAjaxSampledataApplyStep1 () | |
onAjaxSampledataApplyStep2 () | |
onAjaxSampledataApplyStep3 () | |
onAjaxSampledataApplyStep4 () | |
onAjaxSampledataApplyStep5 () | |
onAjaxSampledataApplyStep6 () | |
onAjaxSampledataApplyStep7 () | |
onAjaxSampledataApplyStep8 () | |
addCategory ($itemLanguage) | |
getInstalledlangsAdministrator () | |
getInstalledlangsFrontend () | |
Fonctions membres publiques hérités de CMSPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR) | |
setApplication (CMSApplicationInterface $application) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de PluginInterface | |
registerListeners () | |
Fonctions membres protégées | |
getInstalledlangs ($clientName='administrator') | |
getLanguageList ($clientId=1) | |
compareLanguages ($lang1, $lang2) | |
getPath () | |
getClient ($client='administrator') | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
Attributs protégés | |
$db | |
$app | |
$autoloadLanguage = true | |
$path = null | |
$adminId | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Fonctions membres privées | |
enablePlugin ($pluginName) | |
disableModuleMainMenu () | |
addModuleLanguageSwitcher () | |
addModuleMenu ($itemLanguage) | |
addMenuGroup ($itemLanguage) | |
addAllCategoriesMenuItem ($itemLanguage) | |
addBlogMenuItem ($itemLanguage, $categoryId) | |
addAssociations ($groupedAssociations) | |
addModuleInModuleMenu ($moduleId) | |
addArticle ($itemLanguage, $categoryId) | |
publishContentLanguages () | |
getAdminId () | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
Sampledata - Multilang Plugin
|
private |
Add List All Categories Menu Item for new router.
stdClass | $itemLanguage | Language Object. |
Références $title, et JPATH_ADMINISTRATOR.
|
private |
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, Joomla\CMS\MVC\Model\$workflow, Factory\getDate(), JPATH_ADMINISTRATOR, null, et ApplicationHelper\stringURLSafe().
|
private |
Create the language associations.
array | $groupedAssociations | Array of language associations for all items. |
Références $context, $db, $id, $key, $language, $query, ParameterType\INTEGER, et ParameterType\STRING.
|
private |
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 to create a category for a specific language.
stdClass | $itemLanguage | Language Object. |
Références $app, $category, $data, $title, Factory\getApplication(), Factory\getDate(), JPATH_ADMINISTRATOR, et ApplicationHelper\stringURLSafe().
|
private |
Add Menu Group.
stdClass | $itemLanguage | Language Object. |
|
private |
Add a Module in Module menus.
integer | $moduleId | The Id of module. |
Références $db, $moduleId, $query, et ParameterType\INTEGER.
|
private |
Enable the Language Switcher Module.
|
private |
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. |
|
private |
|
private |
|
private |
|
protected |
Get the client object of Administrator or Frontend.
string | $client | Name of the client object. |
Références $client, et ApplicationHelper\getClientInfo().
|
protected |
getInstalledlangsAdministrator | ( | ) |
Get Languages item data for the Administrator.
getInstalledlangsFrontend | ( | ) |
Get Languages item data for the Frontend.
|
protected |
Get installed languages data.
integer | $clientId | The client ID to retrieve data for. |
Références $clientId, $db, $query, et ParameterType\INTEGER.
|
protected |
Get the languages folder path.
Références $client, $path, LanguageHelper\getLanguagePath(), null, et path.
onAjaxSampledataApplyStep1 | ( | ) |
First step to enable the Language filter plugin.
Références $lang, $languages, $message, Text\_(), Joomla\Application\checkToken(), JPATH_ADMINISTRATOR, et Text\sprintf().
onAjaxSampledataApplyStep2 | ( | ) |
Second step to add a language switcher module
Références $lang, $message, Text\_(), Joomla\Application\checkToken(), ComponentHelper\isEnabled(), JPATH_SITE, et Text\sprintf().
onAjaxSampledataApplyStep3 | ( | ) |
Third step to make sure all content languages are published
Références Text\_(), Joomla\Application\checkToken(), ComponentHelper\isEnabled(), et Text\sprintf().
onAjaxSampledataApplyStep4 | ( | ) |
Fourth step to create Menus and list all categories menu items
Références Text\_(), Joomla\Application\checkToken(), ComponentHelper\isEnabled(), et Text\sprintf().
onAjaxSampledataApplyStep5 | ( | ) |
Fifth step to add menu modules
Références Text\_(), Joomla\Application\checkToken(), ComponentHelper\isEnabled(), et Text\sprintf().
onAjaxSampledataApplyStep6 | ( | ) |
Sixth step to add workflow, categories, articles and blog menu items
Références Text\_(), Joomla\Application\checkToken(), ComponentHelper\getParams(), ComponentHelper\isEnabled(), et Text\sprintf().
onAjaxSampledataApplyStep7 | ( | ) |
Seventh step to disable the mainmenu module whose home page is set to All languages.
Références Text\_(), Joomla\Application\checkToken(), ComponentHelper\isEnabled(), et Text\sprintf().
onAjaxSampledataApplyStep8 | ( | ) |
Final step to show completion of sampledata.
Références Text\_().
onSampledataGetOverview | ( | ) |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |