Actions

API17

Difference between revisions of "JMail::getInstance"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JMail::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JMail::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JMail::getInstance ($id= 'Joomla')
+
public static function getInstance ($id= 'Joomla')
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 25: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 46 of libraries/joomla/mail/mail.php
===Defined in===
+
libraries/joomla/mail/mail.php (line 46)
+
* see source code in [[jplatform:mail/mail.php#cl-46|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JMail::getInstance source code''' on [[jplatform:mail/mail.php#cl-38|BitBucket]]
 +
* {{JVer|11.1}} Class [[JMail/11.1|JMail]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Mail/11.1|Mail]]
 +
* [[JMail::getInstance|Other versions of JMail::getInstance]]
 +
{{SeeAlso:JMail::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JMail::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JMail::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JMail/11.1|JMail]]
+
===User contributed notes===
* [[JMail::getInstance|Other versions of this method]]
+
{{SeeAlso:JMail::getInstance}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 46: Line 43:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JMail]][[Category:JMail::getInstance]]</noinclude>
 
<noinclude>[[Category:JMail]][[Category:JMail::getInstance]]</noinclude>

Revision as of 21:21, 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 JMail::getInstance

Description

Returns the global email object, only creating it if it doesn't already exist.

Description:JMail::getInstance [Edit Descripton]

public static function getInstance ($id= 'Joomla')
Parameter Type Default Description
$id 'Joomla'
  • Returns
  • Defined on line 46 of libraries/joomla/mail/mail.php

See also

SeeAlso:JMail::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />