Actions

API15

JFactory Class

From Joomla! Documentation

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.

API15:JFactory

JFactory provides access to a group of core Joomla Objects. In each case it returns an object, usually with the current site settings.

Contents

getApplication()

Returns a reference to the Global API15:JApplication object

$app =& JFactory::getApplication();

getCache()

Returns a reference to the Global API15:JCache object

$cache =& JFactory::getCache();

getConfig()

Returns a reference to the Global JConfig object

$config =& JFactory::getConfig();

getDate()

Returns a reference to the Global API15:JDate object

$date =& JFactory::getDate();

getDBO()

Returns a reference to the Global API15:JDatabase object

$db =& JFactory::getDBO();

getDocument()

Returns a reference to the Global API15:JDocument object

$doc =& JFactory::getDocument();

getEditor()

Returns a reference to the Global API15:JEditor object

$editor =& JFactory::getEditor();

getLanguage()

Returns a reference to the Global API15:JLanguage object

$lang =& JFactory::getLanguage();

getMailer()

Returns a reference to the Global API15:JMail object

$mailer =& JFactory::getMailer();

getSession()

Returns a reference to the Global API15:JSession object

$session =& JFactory::getSession();

getTemplate()

Returns a reference to the Global API15:JTemplate object

$template =& JFactory::getTemplate();

getURI()

Returns a reference to the Global API15:JURI object

$uri =& JFactory::getURI();

getUser()

Returns a reference to the Global API15:JUser object

$user =& JFactory::getUser();

getXMLParser()

Returns a reference to the Global JXMLParser object

$xmlp =& JFactory::getXMLParser();

Takes parameters: $type & $options $type can take the values 'DOM' (default), 'RSS', or 'Simple' $options takes an options array (default is empty) boolean ['lite'] for use with DOM to use domit_lite (default) string [#rssUrl'] for use with 'RSS' string [cache_time'] feed cache time for 'RSS' (default = 3600 seconds)

See Also