API17

JCli: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 2: Line 2:
=={{JVer|11.1}} JCli==
=={{JVer|11.1}} JCli==
===Description===
===Description===
{{subst:Description:JCli}}
 


===Methods===
===Methods===
Line 69: Line 69:
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[API17:JCli|Other versions of JCli]]
* [[API17:JCli|Other versions of JCli]]
{{subst:SeeAlso:JCli}}
 


===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JCli
category=JCli
category=CodeExample
namespace=CodeExample
category=ClassExample
category=ClassExample
include=*
include=*

Latest revision as of 02:29, 25 March 2017

Joomla 11.1 JCli

Description

Methods

Visibility Method name Description
public close Exit the application.
public execute Execute the application.
public get Returns a property of the object or the default value if the property is not set.
public in Get a value from standard input.
public loadConfiguration Load an object or array into the application configuration object.
public out Write a string to standard output.
public registerEvent Registers a handler to a particular event group.
public set Modifies a property of the object, creating it if it does not already exist.
public triggerEvent Calls all handlers associated with an event group.
public getInstance Returns a reference to the global object, only creating it if it doesn't already exist.
protected __construct Class constructor.
protected fetchConfigurationData Method to load a PHP configuration class file based on convention and return the instantiated data object.
  • Defined in libraries/joomla/application/cli.php
  • Extended by

Importing

jimport( 'joomla.application.cli' );

See also


User contributed notes

Code Examples