JFactory Class
From Joomla! Documentation
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 JApplication object
$app =& JFactory::getApplication();
getCache()
Returns a reference to the Global JCache object
$cache =& JFactory::getCache();
getConfig()
Returns a reference to the Global JConfig object
$config =& JFactory::getConfig();
getDate()
Returns a reference to the Global JDate object
$date =& JFactory::getDate();
getDBO()
Returns a reference to the Global JDatabase object
$db =& JFactory::getDBO();
getDocument()
Returns a reference to the Global JDocument object
$doc =& JFactory::getDocument();
getEditor()
Returns a reference to the Global JEDitor object
$editor =& JFactory::getEditor();
getLanguage()
Returns a reference to the Global JLanguage object
$lang =& JFactory::getLanguage();
getMailer()
Returns a reference to the Global JMailer object
$mailer =& JFactory::getMailer();
getSession()
Returns a reference to the Global JSession object
$session =& JFactory::getSession();
getTemplate()
Returns a reference to the Global JTemplate object
$template =& JFactory::getTemplate();
getURI()
Returns a reference to the Global JURI object
$uri =& JFactory::getURI();
getUser()
Returns a reference to the Global 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)