Class JApplicationCli
Base class for a Joomla! command line application.
- Joomla\Application\AbstractApplication implements Psr\Log\LoggerAwareInterface
- JApplicationBase
- JApplicationCli
Direct known subclasses
Indirect known subclasses
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 11.4
Note: As of 4.0 this class will be abstract
Located at joomla/application/cli.php
Methods summary
public
|
#
__construct(
Class constructor. |
public static
|
#
getInstance( string $name = null )
Returns a reference to the global JApplicationCli object, only creating it if it doesn't already exist. |
public
|
|
public
|
#
loadConfiguration( mixed $data )
Load an object or array into the application configuration object. |
public
|
|
public
|
|
public
|
|
public
string
|
|
protected
mixed
|
#
fetchConfigurationData( string $file = '', string $class = 'JConfig' )
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. |
Methods inherited from JApplicationBase
doExecute()
,
getIdentity()
,
loadDispatcher()
,
loadIdentity()
,
registerEvent()
,
triggerEvent()
Methods inherited from Joomla\Application\AbstractApplication
close()
,
get()
,
getLogger()
,
initialise()
,
set()
,
setConfiguration()
,
setLogger()
Magic methods summary
Properties summary
protected
|
$output |
#
The output type. |
protected static
|
$instance |
#
The application instance. |