JFactory

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
m (bad link repair)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Examples ==
+
This class is available in the following Joomla versions:-
Access [[JFactory]]:
+
<splist showpath=notparent />
    $var =& JFactory::content();
+
<noinclude>[[Category:Platform JClasses]][[Category:JFactory]]</noinclude>
 
+
Access an open database via [[JFactory]]:
+
    $database =& JFactory::getDBO();
+
 
+
Access a document using [[JFactory]]:
+
    $document =& JFactory::getDocument();
+
 
+
    $uri =& JFactory::getURI();   
+
   
+
The following provides access to the logged-in user info.
+
    $user =& JFactory::getUser();
+
 
+
== See Also ==
+
* [http://api.joomla.org/Joomla-Framework/JFactory.html JFactory class documentation from the Joomla! API]
+
* [[Accessing_the_current_user_object]]
+
 
+
[[Category:Development]]
+

Latest revision as of 13:42, 29 August 2012

This class is available in the following Joomla versions:-

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox