API16:JFactory
From Joomla! Documentation
JFactory provides a simple means of organising the main singleton objects required by the Joomla Framework.
Defined in
libraries/joomla/factory.php
Methods
| Method name | Description |
|---|---|
| getApplication | Get a application object |
| getConfig | Get a configuration object |
| getSession | Get a session object |
| getLanguage | Get a language object |
| getDocument | Get a document object |
| getUser | Get an user object |
| getCache | Get a cache object |
| getACL | Get an authorization object |
| getDbo | Get a database object |
| getMailer | Get a mailer object |
| getFeedParser | Get a parsed XML Feed Source |
| getXMLParser | Get an XML document |
| getXML | Reads a XML file. |
| getEditor | Get an editor object |
| getURI | Return a reference to the JURI object |
| getDate | Return the JDate object |
| getStream | Creates a new stream object with appropriate prefix |
Importing
jimport( 'joomla.factory' );
This example was originally contributed by User:Bembelimen