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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe AbstractApplication
+ Graphe d'héritage de AbstractApplication:

Fonctions membres publiques

 __construct (Input $input=null, Registry $config=null)
 
 close ($code=0)
 
 execute ()
 
 get ($key, $default=null)
 
 getLogger ()
 
 set ($key, $value=null)
 
 setConfiguration (Registry $config)
 
 setLogger (LoggerInterface $logger)
 

Champs de données

 $input
 

Fonctions membres protégées

 doExecute ()
 
 initialise ()
 

Attributs protégés

 $config
 

Attributs privés

 $logger
 

Description détaillée

Joomla Framework Base Application Class

Depuis
1.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( Input  $input = null,
Registry  $config = null 
)

Class constructor.

Paramètres
Input$inputAn optional argument to provide dependency injection for the application's input object. If the argument is an Input object that object will become the application's input object, otherwise a default input object is created.
Registry$configAn 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.
Depuis
1.0

Références AbstractApplication\$config, AbstractApplication\$input, et AbstractApplication\initialise().

Documentation des fonctions membres

◆ close()

close (   $code = 0)

Method to close the application.

Paramètres
integer$codeThe exit code (optional; default is 0).
Renvoie
void
Depuis
1.0

Référencé par AbstractCliApplication\__construct(), AbstractWebApplication\checkToken(), AbstractDaemonApplication\detach(), AbstractWebApplication\redirect(), AbstractDaemonApplication\shutdown(), et AbstractDaemonApplication\signal().

◆ doExecute()

doExecute ( )
abstractprotected

Method to run the application routines. Most likely you will want to instantiate a controller and execute it, or perform some sort of task directly.

Renvoie
mixed
Depuis
1.0

Référencé par AbstractApplication\execute(), AbstractWebApplication\execute(), et AbstractDaemonApplication\execute().

◆ execute()

execute ( )

Execute the application.

Renvoie
void
Depuis
1.0

Références AbstractApplication\doExecute().

◆ get()

get (   $key,
  $default = null 
)

Returns a property of the object or the default value if the property is not set.

Paramètres
string$keyThe name of the property.
mixed$defaultThe default value (optional) if none is set.
Renvoie
mixed The value of the configuration.
Depuis
1.0

Références $default, et $key.

Référencé par MetadataManager\createRecordIfNonExisting().

◆ getLogger()

◆ initialise()

initialise ( )
protected

Custom initialisation method.

Called at the end of the AbstractApplication::__construct method. This is for developers to inject initialisation code for their application classes.

Renvoie
void
Depuis
1.0

Référencé par AbstractApplication\__construct().

◆ set()

set (   $key,
  $value = null 
)

Modifies a property of the object, creating it if it does not already exist.

Paramètres
string$keyThe name of the property.
mixed$valueThe value of the property to set (optional).
Renvoie
mixed Previous value of the property
Depuis
1.0

Références $key, et $value.

◆ setConfiguration()

setConfiguration ( Registry  $config)

Sets the configuration for the application.

Paramètres
Registry$configA registry object holding the configuration.
Renvoie
AbstractApplication Returns itself to support chaining.
Depuis
1.0

Références AbstractApplication\$config.

◆ setLogger()

setLogger ( LoggerInterface  $logger)

Set the logger.

Paramètres
LoggerInterface$loggerThe logger.
Renvoie
AbstractApplication Returns itself to support chaining.
Depuis
1.0

Implémente LoggerAwareInterface.

Références AbstractApplication\$logger.

Documentation des champs

◆ $config

◆ $input

◆ $logger


La documentation de cette classe a été générée à partir du fichier suivant :