JFactory

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
m (bad link repair)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''JFactory''' provides a simple means of organising the main [http://en.wikipedia.org/wiki/Singleton_pattern singleton] objects required by the Joomla Framework.
+
This class is available in the following Joomla versions:-
 
+
<splist showpath=notparent />
===Defined in===
+
<noinclude>[[Category:Platform JClasses]][[Category:JFactory]]</noinclude>
/libraries/joomla/factory.php
+
 
+
===Methods===
+
{| class="wikitable"
+
|-
+
!Method name
+
!Description
+
|-
+
|[[JFactory/getACL|getACL]]
+
|Returns a reference to the global [[JAuthorization|authorisation]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getApplication|getApplication]]
+
|Returns a reference to the global [[JApplication|application]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getCache|getCache]]
+
|Returns a reference to the global [[JCache|cache]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getConfig|getConfig]]
+
|Returns a reference to the global [[JRegistry|configuration]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getDate|getDate]]
+
|Returns a reference to the global [[JDate|date]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getDBO|getDBO]]
+
|Returns a reference to the global [[JDatabase|database]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getDocument|getDocument]]
+
|Returns a reference to the global [[JDocument|document]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getEditor|getEditor]]
+
|Returns a reference to the global [[JEditor|WYSIWYG editor]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getLanguage|getLanguage]]
+
|Returns a reference to the global [[JLanguage|language]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getMailer|getMailer]]
+
|Returns a reference to the global [[JMail|mail]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getSession|getSession]]
+
|Returns a reference to the global [[JSession|session]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getTemplate|getTemplate]]
+
|Returns a reference to the global [[JTemplate|template]] object, only creating it if it doesn't already exist.  This method is retained for backwards compatibility only.  The patTemplate templating system is no longer used.
+
|-
+
|[[JFactory/getURI|getURI]]
+
|Returns a reference to the global [[JURI|URI]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getUser|getUser]]
+
|Returns a reference to the global [[JUser|user]] object, only creating it if it doesn't already exist.
+
|-
+
|[[JFactory/getXMLParser|getXMLParser]]
+
|Returns a reference to a global XML parser object, only creating it if it doesn't already exist.  Different parsers are available.
+
|}
+
 
+
===Importing===
+
This class is always available and does not need to be imported into your code.
+
 
+
===See also===
+
* [http://api.joomla.org/Joomla-Framework/JFactory.html JFactory on api.joomla.org]
+
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JFactory]]</noinclude>
+

Latest revision as of 13:42, 29 August 2012

This class is available in the following Joomla versions:-

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox