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é
|
Fonctions membres publiques | |
__construct (Cli $input=null, Registry $config=null, \JEventDispatcher $dispatcher=null) | |
execute () | |
loadConfiguration ($data) | |
out ($text='', $nl=true) | |
getOutput () | |
setOutput (CliOutput $output) | |
in () | |
Fonctions membres publiques hérités de BaseApplication | |
__construct (Input $input=null, Registry $config=null) | |
getIdentity () | |
registerEvent ($event, $handler) | |
triggerEvent ($event, array $args=null) | |
loadDispatcher (\JEventDispatcher $dispatcher=null) | |
loadIdentity (\JUser $identity=null) | |
Fonctions membres publiques hérités de AbstractApplication | |
__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) | |
Fonctions membres publiques statiques | |
static | getInstance ($name=null) |
Fonctions membres protégées | |
fetchConfigurationData ($file='', $class='\JConfig') | |
Fonctions membres protégées hérités de BaseApplication | |
doExecute () | |
Fonctions membres protégées hérités de AbstractApplication | |
doExecute () | |
initialise () | |
Attributs protégés | |
$output | |
Attributs protégés hérités de BaseApplication | |
$dispatcher | |
$identity | |
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 AbstractApplication | |
$input | |
Base class for a Joomla! command line application.
Class constructor.
Cli | $input | An optional argument to provide dependency injection for the application's input object. If the argument is a 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. |
\JEventDispatcher | $dispatcher | An optional argument to provide dependency injection for the application's event dispatcher. If the argument is a object that object will become the application's event dispatcher, if it is null then the default event dispatcher will be created based on the application's loadDispatcher() method. |
Références $config, $dispatcher, et $input.
execute | ( | ) |
Execute the application.
|
protected |
Method to load a PHP configuration class file based on convention and return the instantiated data object. You will extend this method in child classes to provide configuration data from whatever data source is relevant for your specific application.
string | $file | The path and filename of the configuration file. If not provided, configuration.php in JPATH_CONFIGURATION will be used. |
string | $class | The class name to instantiate. |
Références $class, $config, $file, JPATH_CONFIGURATION, et JLoader\register().
|
static |
Returns a reference to the global CliApplication object, only creating it if it doesn't already exist.
This method must be invoked as: $cli = CliApplication::getInstance();
string | $name | The name (optional) of the JApplicationCli class to instantiate. |
Références $name.
in | ( | ) |
Get a value from standard input.
loadConfiguration | ( | $data | ) |
Load an object or array into the application configuration object.
mixed | $data | Either an array or object to be loaded into the configuration object. |
out | ( | $text = '' , |
|
$nl = true |
|||
) |
Write a string to standard output.
string | $text | The text to display. |
boolean | $nl | True (default) to append a new line at the end of the output string. |
setOutput | ( | CliOutput | $output | ) |
Set an output object.
CliOutput | $output | CliOutput object |
Références $output.
|
staticprotected |
|
protected |