JFactory
From Joomla! Documentation
Revision as of 07:12, 24 January 2009 by Chris Davenport (Talk | contribs)
JFactory provides a simple means of organising the main singleton objects required by the Joomla Framework.
Contents |
Defined in
/libraries/joomla/factory.php
Methods
| Method name | Description |
|---|---|
| getACL | Returns a reference to the global authorisation object, only creating it if it doesn't already exist. |
| getApplication | Returns a reference to the global application object, only creating it if it doesn't already exist. |
| getCache | Returns a reference to the global cache object, only creating it if it doesn't already exist. |
| getConfig | Returns a reference to the global configuration object, only creating it if it doesn't already exist. |
| getDate | Returns a reference to the global date object, only creating it if it doesn't already exist. |
| getDBO | Returns a reference to the global database object, only creating it if it doesn't already exist. |
| getDocument | Returns a reference to the global document object, only creating it if it doesn't already exist. |
| getEditor | Returns a reference to the global WYSIWYG editor object, only creating it if it doesn't already exist. |
| getLanguage | Returns a reference to the global language object, only creating it if it doesn't already exist. |
| getMailer | Returns a reference to the global mail object, only creating it if it doesn't already exist. |
| getSession | Returns a reference to the global session object, only creating it if it doesn't already exist. |
| getTemplate | Deprecated in 1.5.x; removed from 1.6 onwards. Returns a reference to the global template object, only creating it if it doesn't already exist. The patTemplate templating system is no longer used. |
| getURI | Returns a reference to the global URI object, only creating it if it doesn't already exist. |
| getUser | Returns a reference to the global user object, only creating it if it doesn't already exist. |
| 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.