JFactory
From Joomla! Documentation
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JFactory provides a simple means of organising the main singleton objects required by the Joomla Framework.
Defined in[edit]
libraries/joomla/factory.php
Methods[edit]
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[edit]
jimport( 'joomla.factory' );
This example was originally contributed by User:Bembelimen