references:joomla.framework:application:japplicationTable of Contents
JApplication
JApplication is the base class for a Joomla! application. It provides many basic API functions relating to the application itself. An instance of this class, called $mainframe, is created using the existing database object and the option parameter that was passed in the request. Therefore you do not generally need to create a new instance of this object. If access to $mainframe is required within a function then it must be declared in a global statement at the top of the function so that the global variable is accessed. In actual fact, $mainframe is an instance of either the JSite class or the JAdministrator class, both of which extend the JApplication class, depending on whether the Joomla! Front-end or Back-end is being executed, respectively. The class definition for JSite can be found in the includes/application.php file and the class definition for JAdministrator can be found in administrator/includes/application.php. Methods
Deprecated MethodsThe following methods are provided for backwards compatibility with Joomla! 1.0 and are scheduled to be removed in future versions. You should not use these methods to maintain compatibility with Joomla 1.5 or above.
|


