Actions

API17

Difference between revisions of "JCli"

From Joomla! Documentation

m (JoomlaWikiBot moved page JCli/11.1 to API17:JCli without leaving a redirect: Robot: Moved page)
m (moving preparation)
 
(One intermediate revision by one user not shown)
Line 14: Line 14:
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::close/11.1|close]]
+
|[[API17:JCli::close|close]]
 
|Exit the application.  
 
|Exit the application.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::execute/11.1|execute]]
+
|[[API17:JCli::execute|execute]]
 
|Execute the application.  
 
|Execute the application.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::get/11.1|get]]
+
|[[API17:JCli::get|get]]
 
|Returns a property of the object or the default value if the property is not set.  
 
|Returns a property of the object or the default value if the property is not set.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::in/11.1|in]]
+
|[[API17:JCli::in|in]]
 
|Get a value from standard input.  
 
|Get a value from standard input.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::loadConfiguration/11.1|loadConfiguration]]
+
|[[API17:JCli::loadConfiguration|loadConfiguration]]
 
|Load an object or array into the application configuration object.  
 
|Load an object or array into the application configuration object.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::out/11.1|out]]
+
|[[API17:JCli::out|out]]
 
|Write a string to standard output.  
 
|Write a string to standard output.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::registerEvent/11.1|registerEvent]]
+
|[[API17:JCli::registerEvent|registerEvent]]
 
|Registers a handler to a particular event group.  
 
|Registers a handler to a particular event group.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::set/11.1|set]]
+
|[[API17:JCli::set|set]]
 
|Modifies a property of the object, creating it if it does not already exist.  
 
|Modifies a property of the object, creating it if it does not already exist.  
 
|-
 
|-
 
|public  
 
|public  
|[[JCli::triggerEvent/11.1|triggerEvent]]
+
|[[API17:JCli::triggerEvent|triggerEvent]]
 
|Calls all handlers associated with an event group.  
 
|Calls all handlers associated with an event group.  
 
|-
 
|-
 
|public   
 
|public   
|[[JCli::getInstance/11.1|getInstance]]
+
|[[API17:JCli::getInstance|getInstance]]
 
|Returns a reference to the global  object, only creating it if it doesn't already exist.  
 
|Returns a reference to the global  object, only creating it if it doesn't already exist.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JCli::__construct/11.1|__construct]]
+
|[[API17:JCli::__construct|__construct]]
 
|Class constructor.  
 
|Class constructor.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JCli::fetchConfigurationData/11.1|fetchConfigurationData]]
+
|[[API17:JCli::fetchConfigurationData|fetchConfigurationData]]
 
|Method to load a PHP configuration class file based on convention and return the instantiated data object.  
 
|Method to load a PHP configuration class file based on convention and return the instantiated data object.  
 
|-
 
|-
Line 64: Line 64:
 
* '''Defined in''' libraries/joomla/application/cli.php
 
* '''Defined in''' libraries/joomla/application/cli.php
 
* '''Extended by'''
 
* '''Extended by'''
** [[JDaemon/11.1|JDaemon]]
+
** [[API17:JDaemon|JDaemon]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.application.cli' );</source>
 
<source lang="php">jimport( 'joomla.application.cli' );</source>
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JCli source code''' on [[jplatform:application/cli.php|BitBucket]]
 
* {{JVer|11.1}} '''JCli source code''' on [[jplatform:application/cli.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Application/11.1|Application]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[JCli|Other versions of JCli]]
+
* [[API17:JCli|Other versions of JCli]]
 
{{SeeAlso:JCli}}
 
{{SeeAlso:JCli}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 86: Line 86:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JCli]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 19:56, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JCli

Description

Description:JCli [Edit Descripton]

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

SeeAlso:JCli [Edit See Also]

User contributed notes

<CodeExamplesForm />