Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | getInstance ($name=null) |
Fonctions membres publiques statiques hérités de AbstractWebApplication | |
static | isAscii ($str) |
Fonctions membres protégées | |
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 | |
$document | |
$language | |
Attributs protégés hérités de AbstractWebApplication | |
$input | |
$response | |
Attributs protégés hérités de AbstractApplication | |
$config | |
Attributs protégés statiques | |
static | $instance |
Membres hérités additionnels | |
Champs de données hérités de AbstractWebApplication | |
$charSet = 'utf-8' | |
$mimeType = 'text/html' | |
$httpVersion = '1.1' | |
$modifiedDate | |
$client | |
Base class for a Joomla! Web application.
__construct | ( | Input | $input = null , |
Registry | $config = null , |
||
WebClient | $client = null , |
||
ResponseInterface | $response = 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. |
ResponseInterface | $response | An optional argument to provide dependency injection for the application's response object. If the argument is a ResponseInterface object that object will become the application's response object, otherwise a default response object is created. |
Références $client, $config, $input, et Symfony\Contracts\Service\__construct().
afterSessionStart | ( | SessionEvent | $event | ) |
After the session has been started we need to populate it with some default values.
SessionEvent | $event | Session event being triggered |
Références Joomla\CMS\Application\getIdentity(), SessionEvent\getSession(), et Joomla\CMS\Application\loadIdentity().
execute | ( | ) |
Execute the application.
Implémente ApplicationInterface.
Références Joomla\CMS\Application\triggerEvent().
flushAssets | ( | ) |
Flush the media version to refresh versionable assets
getConfig | ( | ) |
getDocument | ( | ) |
|
static |
Returns a reference to the global WebApplication object, only creating it if it doesn't already exist.
This method must be invoked as: $web = WebApplication::getInstance();
string | $name | The name (optional) of the WebApplication class to instantiate. |
Références $name.
getLanguage | ( | ) |
Allows the application to load a custom or default document.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create a document, if required, based on more specific needs.
Document | $document | An optional document object. If omitted, the factory document is created. |
Références $document, $this, et Factory\getDocument().
Allows the application to load a custom or default language.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create a language, if required, based on more specific needs.
Language | $language | An optional language object. If omitted, the factory language is created. |
Références $language, $this, Factory\getLanguage(), et language.
Allows the application to load a custom or default session.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create a session, if required, based on more specific needs.
Session | $session | An optional session object. If omitted, the session is created. |
Références $this, et Joomla\CMS\Application\getLogger().
|
protected |
Method to load the system URI strings for the application.
string | $requestUri | An optional request URI to use instead of detecting one from the server environment variables. |
Références $path, $uri, et Uri\getInstance().
|
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 $data, $options, __DIR__, JPATH_BASE, et JPATH_THEMES.
|
protected |
|
staticprotected |
|
protected |