Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | getRouter ($name='site', array $options=array()) |
Fonctions membres publiques statiques hérités de CMSApplication | |
static | getInstance ($name=null, $prefix='\JApplication', Container $container=null) |
static | getRouter ($name=null, array $options=array()) |
Fonctions membres publiques statiques hérités de WebApplication | |
static | getInstance ($name=null) |
Fonctions membres publiques statiques hérités de AbstractWebApplication | |
static | isAscii ($str) |
Fonctions membres protégées | |
authorise ($itemid) | |
doExecute () | |
initialiseApp ($options=array()) | |
loadLibraryLanguage () | |
render () | |
route () | |
Fonctions membres protégées hérités de CMSApplication | |
checkUserRequireReset ($option, $view, $layout, $tasks) | |
initialiseApp ($options=array()) | |
loadLibraryLanguage () | |
render () | |
route () | |
isTwoFactorAuthenticationRequired () | |
Fonctions membres protégées hérités de WebApplication | |
render () | |
loadSystemUris ($requestUri=null) | |
Fonctions membres protégées hérités de AbstractWebApplication | |
compress () | |
respond () | |
getHttpStatusValue ($value) | |
checkConnectionAlive () | |
checkHeadersSent () | |
detectRequestUri () | |
header ($string, $replace=true, $code=null) | |
isRedirectState ($state) | |
loadSystemUris ($requestUri=null) | |
Fonctions membres protégées hérités de AbstractApplication | |
dispatchEvent (string $eventName, ?EventInterface $event=null) | |
doExecute () | |
initialise () | |
Attributs protégés | |
$language_filter = false | |
$detect_browser = false | |
Attributs protégés hérités de CMSApplication | |
$docOptions = array() | |
$clientId = null | |
$messageQueue = array() | |
$name = null | |
$profiler = null | |
$template = null | |
$pathway = null | |
$authenticationPluginType = 'authentication' | |
$menus = [] | |
Attributs protégés hérités de WebApplication | |
$document | |
$language | |
Attributs protégés hérités de AbstractWebApplication | |
$input | |
$response | |
Attributs protégés hérités de AbstractApplication | |
$config | |
Membres hérités additionnels | |
Champs de données hérités de CMSApplication | |
$scope = null | |
Champs de données hérités de AbstractWebApplication | |
$charSet = 'utf-8' | |
$mimeType = 'text/html' | |
$httpVersion = '1.1' | |
$modifiedDate | |
$client | |
Champs de données hérités de CMSApplicationInterface | |
const | MSG_EMERGENCY = 'emergency' |
const | MSG_ALERT = 'alert' |
const | MSG_CRITICAL = 'critical' |
const | MSG_ERROR = 'error' |
const | MSG_WARNING = 'warning' |
const | MSG_NOTICE = 'notice' |
const | MSG_INFO = 'info' |
const | MSG_DEBUG = 'debug' |
Attributs protégés statiques hérités de CMSApplication | |
static | $instances = array() |
Attributs protégés statiques hérités de WebApplication | |
static | $instance |
Joomla! Site Application class
__construct | ( | Input | $input = null , |
Registry | $config = null , |
||
WebClient | $client = null , |
||
Container | $container = null |
||
) |
Class constructor.
Input | $input | An optional argument to provide dependency injection for the application's input object. If the argument is a JInput object that object will become the application's input object, otherwise a default input object is created. |
Registry | $config | An optional argument to provide dependency injection for the application's config object. If the argument is a Registry object that object will become the application's config object, otherwise a default config object is created. |
WebClient | $client | An optional argument to provide dependency injection for the application's client object. If the argument is a WebClient object that object will become the application's client object, otherwise a default client object is created. |
Container | $container | Dependency injection container. |
Références $client, $config, $container, $input, Symfony\Contracts\Service\__construct(), et name.
|
protected |
Check if the user can access the application
integer | $itemid | The item ID to check authorisation for |
Références $itemid, $url, $user, Text\_(), Route\_(), Uri\getInstance(), et Factory\getUser().
dispatch | ( | $component = null | ) |
Dispatch the application
string | $component | The component which is being rendered. |
Références $component, $document, Factory\$document, $params, $template, $this, Uri\current(), PluginHelper\importPlugin(), null, et Joomla\CMS\Application\triggerEvent().
|
protected |
getDetectBrowser | ( | ) |
Return the current state of the detect browser option.
getLanguageFilter | ( | ) |
Return the current state of the language filter.
getParams | ( | $option = null | ) |
Get the application parameters
string | $option | The component option |
Références $description, $hash, $languages, $menu, $option, $params, $temp, $title, ComponentHelper\getParams(), et null.
getPathway | ( | $name = 'site' , |
|
$options = array() |
|||
) |
|
static |
Return a reference to the Router object.
string | $name | The name of the application. |
array | $options | An optional associative array of configuration settings. |
Implémente CMSWebApplicationInterface.
|
protected |
Initialise the application.
array | $options | An optional associative array of configuration settings. |
Références $lang, $options, $params, $user, LanguageHelper\detectLanguage(), LanguageHelper\exists(), ComponentHelper\getParams(), PluginHelper\getPlugin(), Factory\getUser(), et null.
|
protected |
Load the library language files for the application
Références JPATH_ADMINISTRATOR, et JPATH_SITE.
login | ( | $credentials, | |
$options = array() |
|||
) |
Login authentication function
array | $credentials | Array('username' => string, 'password' => string) |
array | $options | Array('remember' => boolean) |
Références $options, et Uri\base().
|
protected |
Rendering is the process of pushing the document buffers into the template placeholders, retrieving data from the document and pushing it into the application response buffer.
Références $template, $this, Uri\getInstance(), Factory\getUser(), et JPATH_THEMES.
|
protected |
Route the application.
Routing is the process of examining the request environment to determine which component should receive the request. The component optional parameters are then set in the request object to be processed when the application is being dispatched.
Références $active, $base, $item, $key, $position, $result, $uri, $value, Uri\base(), class, Joomla\DI\getContainer(), Uri\getInstance(), PluginHelper\importPlugin(), null, StringHelper\strtolower(), et Joomla\CMS\Application\triggerEvent().
setDetectBrowser | ( | $state = false | ) |
Set the current state of the detect browser option.
boolean | $state | The new state of the detect browser option |
Références $state.
setLanguageFilter | ( | $state = false | ) |
Set the current state of the language filter.
boolean | $state | The new state of the language filter |
Références $state.
setTemplate | ( | $template, | |
$styleParams = null |
|||
) |
Overrides the default template that would be used
\stdClass | string | $template | The template name or definition |
mixed | $styleParams | The template style parameters |
Références $template, et JPATH_THEMES.
|
protected |
|
protected |