|
| __construct (Input $input=null, Registry $config=null, CliOutput $output=null, CliInput $cliInput=null, DispatcherInterface $dispatcher=null, Container $container=null) |
|
| __get ($name) |
|
| getInput () |
|
| getLanguage () |
|
| execute () |
|
| getOutput () |
|
| getCliInput () |
|
| out ($text='', $nl=true) |
|
| in () |
|
| setOutput (CliOutput $output) |
|
| enqueueMessage ($msg, $type=self::MSG_INFO) |
|
| getMessageQueue () |
|
| isClient ($identifier) |
|
| getSession () |
|
| getConfig () |
|
| isCli () |
|
| __construct (Registry $config=null) |
|
| close ($code=0) |
|
| execute () |
|
| get ($key, $default=null) |
|
| getLogger () |
|
| set ($key, $value=null) |
|
| setConfiguration (Registry $config) |
|
| setLogger (LoggerInterface $logger) |
|
| setDispatcher (DispatcherInterface $dispatcher) |
|
| getIdentity () |
|
| getName () |
|
| loadIdentity (User $identity=null) |
|
| bootComponent ($component) |
|
| bootModule ($module, $applicationName) |
|
| bootPlugin ($plugin, $type) |
|
| getDispatcher () |
|
| triggerEvent ($eventName, $args=[]) |
|
Base class for a Joomla! command line application.
- Depuis
- 2.5.0
- Obsolète:
- 5.0 Use the ConsoleApplication instead
◆ __construct()
Class constructor.
- Paramètres
-
Input | $input | An optional argument to provide dependency injection for the application's input object. If the argument is a JInputCli 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. |
CliOutput | $output | The output handler. |
CliInput | $cliInput | The CLI input handler. |
DispatcherInterface | $dispatcher | An optional argument to provide dependency injection for the application's event dispatcher. If the argument is a DispatcherInterface 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. |
Container | $container | Dependency injection container. |
- Depuis
- 1.7.0
Références $config, $container, $output, Symfony\Contracts\Service\__construct(), class, Factory\getContainer(), Factory\getLanguage(), language, Joomla\DI\setContainer(), et Joomla\Event\setDispatcher().
◆ __get()
Magic method to access properties of the application.
- Paramètres
-
string | $name | The name of the property. |
- Renvoie
- mixed A value if the property name is valid, null otherwise.
- Depuis
- 4.0.0
- Obsolète:
- 5.0 This is a B/C proxy for deprecated read accesses
Références $name, et Joomla\Application\getInput().
◆ enqueueMessage()
enqueueMessage |
( |
|
$msg, |
|
|
|
$type = self::MSG_INFO |
|
) |
| |
Enqueue a system message.
- Paramètres
-
string | $msg | The message to enqueue. |
string | $type | The message type. |
- Renvoie
- void
- Depuis
- 4.0.0
Implémente CMSApplicationInterface.
Références $type.
◆ execute()
◆ getCliInput()
Get a CLI input object.
- Renvoie
- CliInput
- Depuis
- 4.0.0
◆ getConfig()
Retrieve the application configuration object.
- Renvoie
- Registry
- Depuis
- 4.0.0
Références $config.
◆ getInput()
◆ getInstance()
static getInstance |
( |
|
$name = null | ) |
|
|
static |
◆ getLanguage()
◆ getMessageQueue()
◆ getOutput()
Get an output object.
- Renvoie
- CliOutput
- Depuis
- 4.0.0
Références $output.
◆ getSession()
Method to get the application session object.
- Renvoie
- SessionInterface The session object
- Depuis
- 4.0.0
Références class.
◆ in()
Get a value from standard input.
- Renvoie
- string The input string from standard input.
- Depuis
- 4.0.0
◆ isCli()
Flag if the application instance is a CLI or web based application.
Helper function, you should use the native PHP functions to detect if it is a CLI application.
- Renvoie
- boolean
- Depuis
- 4.0.0
- Obsolète:
- 5.0 Will be removed without replacements
Implémente CMSApplicationInterface.
◆ isClient()
Check the client interface by name.
- Paramètres
-
string | $identifier | String identifier for the application interface |
- Renvoie
- boolean True if this application is of the given type client interface.
- Depuis
- 4.0.0
Implémente CMSApplicationInterface.
◆ out()
out |
( |
|
$text = '' , |
|
|
|
$nl = true |
|
) |
| |
◆ setOutput()
Set an output object.
- Paramètres
-
CliOutput | $output | CliOutput object |
- Renvoie
- $this
- Depuis
- 3.3
Références $output, et $this.
◆ $cliInput
◆ $input
◆ $instance
◆ $language
◆ $messages
◆ $output
La documentation de cette classe a été générée à partir du fichier suivant :