\InstallationModelLanguages
Language Installer model for the Joomla Core Installer.
Synopsis
class InstallationModelLanguages
extends JModelBase
{
- // members
- protected $client;
- protected $data;
- protected $path;
- protected $langlist;
- protected Admin $adminId;
- // Inherited members from JModelBase
- protected JRegistry $state;
- // methods
- public void __construct()
- public boolean getItems()
- public boolean install()
- protected string getLanguageManifest()
- protected string|bool getPackageUrl()
- protected array|bool downloadPackage()
- public array getInstalledlangsAdministrator()
- public array getInstalledlangsFrontend()
- protected array getInstalledlangs()
- protected getLanguageList()
- protected integer compareLanguages()
- protected string getPath()
- protected getClient()
- public boolean setDefault()
- public array getOptions()
- public mixed getForm()
- public boolean enablePlugin()
- public boolean addModuleLanguageSwitcher()
- public boolean addModuleInModuleMenu()
- public string getSefString()
- public boolean addLanguage()
- public boolean addMenuGroup()
- public boolean addMenuItem()
- public boolean addModuleMenu()
- public boolean disableModuleMainMenu()
- public boolean enableModule()
- public JTable addCategory()
- public JTable addArticle()
- private int|bool getAdminId()
- // Inherited methods from JModelBase
- public void __construct()
- public JRegistry getState()
- public void setState()
- protected JRegistry loadState()
Hierarchy
Extends
Members
protected
Methods
private
- getAdminId() — Retrieve the admin user id.
protected
- compareLanguages() — Compare two languages in order to sort them.
- downloadPackage() — Download a language package from a URL and unpack it in the tmp folder.
- getClient() — Get the client object of Administrator or Frontend.
- getInstalledlangs() — Get Languages item data
- getLanguageList() — Get installed languages data.
- getLanguageManifest() — Gets the manifest file of a selected language from a the language list in a update server.
- getPackageUrl() — Finds the url of the package to download.
- getPath() — Get the languages folder path.
public
- __construct() — Constructor: Deletes the default installation config file and recreates it with the good config file.
- addArticle() — Create an article in a specific language
- addCategory() — Method create a category for a specific language
- addLanguage() — Add a Content Language
- addMenuGroup() — Add Menu Group
- addMenuItem() — Add Menu Item.
- addModuleInModuleMenu() — Add a Module in Module menus
- addModuleLanguageSwitcher() — Enable the Language Switcher Module.
- addModuleMenu() — Add Module Menu
- disableModuleMainMenu() — Disable Default Main Menu Module
- enableModule() — Enable a module
- enablePlugin() — Enable a Joomla plugin
- getForm() — Get the model form.
- getInstalledlangsAdministrator() — Get Languages item data for the Administrator
- getInstalledlangsFrontend() — Get Languages item data for the Frontend
- getItems() — Generate a list of language choices to install in the Joomla CMS
- getOptions() — Get the current setup options from the session.
- getSefString() — Gets a unique language SEF string
- install() — Method that installs in Joomla! the selected languages in the Languages View of the installer.
- setDefault() — Set the default language.
Inherited from JModelBase
protected
- loadState() — Load the model state.
public
- getState() — Get the model state.
- setState() — Set the model state.