Actions

API17

Difference between revisions of "JCli::getInstance"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JCli::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JCli::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JCli::getInstance ($name= 'Joomla CLI', $config=array())
+
public & function getInstance ()
 
</source>
 
</source>
{| class="wikitable"
+
* '''Returns'''
|-
+
* '''Defined''' on line 86 of libraries/joomla/application/cli.php
!Parameter
+
!Type
+
!Default
+
!Description
+
|-
+
|$name
+
|
+
|'Joomla CLI'
+
|
+
|-
+
|$config
+
|
+
|array()
+
|
+
|-
+
|}
+
===Returns===
+
 
+
===Defined in===
+
libraries/joomla/application/cli.php (line 108)
+
* see source code in [[jplatform:application/cli.php#cl-108|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JCli::getInstance source code''' on [[jplatform:application/cli.php#cl-78|BitBucket]]
 +
* {{JVer|11.1}} Class [[JCli/11.1|JCli]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]]
 +
* [[JCli::getInstance|Other versions of JCli::getInstance]]
 +
{{SeeAlso:JCli::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCli::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JCli::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JCli/11.1|JCli]]
+
===User contributed notes===
* [[JCli::getInstance|Other versions of this method]]
+
{{SeeAlso:JCli::getInstance}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 51: Line 30:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JCli]][[Category:JCli::getInstance]]</noinclude>
 
<noinclude>[[Category:JCli]][[Category:JCli::getInstance]]</noinclude>

Revision as of 20:20, 27 April 2011

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::getInstance

Description

Returns a reference to the global object, only creating it if it doesn't already exist.

Description:JCli::getInstance [Edit Descripton]

public & function getInstance ()
  • Returns
  • Defined on line 86 of libraries/joomla/application/cli.php

See also

SeeAlso:JCli::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />