API17:JCli::getInstance
From Joomla! Documentation
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.
JCli::getInstance
Description
Returns a reference to the global object, only creating it if it doesn't already exist.
Description:JCli::getInstance [Edit Descripton]
Synopsis
public static JCli::getInstance ($name= 'Joomla CLI', $config=array())
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | 'Joomla CLI' | ||
| $config | array() |
Returns
Defined in
libraries/joomla/application/cli.php (line 108)
- see source code in BitBucket
Referenced by
See also
Examples
<CodeExamplesForm />
