Actions

API17

Difference between revisions of "JApplication"

From Joomla! Documentation

m (JoomlaWikiBot moved page JApplication/11.1 to API17:JApplication without leaving a redirect: Robot: Moved page)
m (moving preparation)
 
(One intermediate revision by one user not shown)
Line 14: Line 14:
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::__construct/11.1|__construct]]
+
|[[API17:JApplication::__construct|__construct]]
 
|Class constructor.  
 
|Class constructor.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::__toString/11.1|__toString]]
+
|[[API17:JApplication::__toString|__toString]]
 
|Returns the response.  
 
|Returns the response.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::checkSession/11.1|checkSession]]
+
|[[API17:JApplication::checkSession|checkSession]]
 
|Checks the user session.  
 
|Checks the user session.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::close/11.1|close]]
+
|[[API17:JApplication::close|close]]
 
|Exit the application.  
 
|Exit the application.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::dispatch/11.1|dispatch]]
+
|[[API17:JApplication::dispatch|dispatch]]
 
|Dispatch the applicaiton.  
 
|Dispatch the applicaiton.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::enqueueMessage/11.1|enqueueMessage]]
+
|[[API17:JApplication::enqueueMessage|enqueueMessage]]
 
|Enqueue a system message.  
 
|Enqueue a system message.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getCfg/11.1|getCfg]]
+
|[[API17:JApplication::getCfg|getCfg]]
 
|
 
|
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getClientId/11.1|getClientId]]
+
|[[API17:JApplication::getClientId|getClientId]]
 
|Gets the client id of the current running application.  
 
|Gets the client id of the current running application.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getMenu/11.1|getMenu]]
+
|[[API17:JApplication::getMenu|getMenu]]
 
|Returns the application  object.  
 
|Returns the application  object.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getMessageQueue/11.1|getMessageQueue]]
+
|[[API17:JApplication::getMessageQueue|getMessageQueue]]
 
|Get the system message queue.  
 
|Get the system message queue.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getName/11.1|getName]]
+
|[[API17:JApplication::getName|getName]]
 
|Method to get the application name.  
 
|Method to get the application name.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getPathway/11.1|getPathway]]
+
|[[API17:JApplication::getPathway|getPathway]]
 
|Returns the application  object.  
 
|Returns the application  object.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getTemplate/11.1|getTemplate]]
+
|[[API17:JApplication::getTemplate|getTemplate]]
 
|Gets the name of the current template.  
 
|Gets the name of the current template.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getUserState/11.1|getUserState]]
+
|[[API17:JApplication::getUserState|getUserState]]
 
|Gets a user state.  
 
|Gets a user state.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::getUserStateFromRequest/11.1|getUserStateFromRequest]]
+
|[[API17:JApplication::getUserStateFromRequest|getUserStateFromRequest]]
 
|Gets the value of a user state variable.  
 
|Gets the value of a user state variable.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::initialise/11.1|initialise]]
+
|[[API17:JApplication::initialise|initialise]]
 
|Initialise the application.  
 
|Initialise the application.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::isAdmin/11.1|isAdmin]]
+
|[[API17:JApplication::isAdmin|isAdmin]]
 
|Is admin interface?  
 
|Is admin interface?  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::isSite/11.1|isSite]]
+
|[[API17:JApplication::isSite|isSite]]
 
|Is site interface?  
 
|Is site interface?  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::login/11.1|login]]
+
|[[API17:JApplication::login|login]]
 
|Login authentication function.  
 
|Login authentication function.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::logout/11.1|logout]]
+
|[[API17:JApplication::logout|logout]]
 
|Logout authentication function.  
 
|Logout authentication function.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::redirect/11.1|redirect]]
+
|[[API17:JApplication::redirect|redirect]]
 
|Redirect to another URL.  
 
|Redirect to another URL.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::render/11.1|render]]
+
|[[API17:JApplication::render|render]]
 
|Render the application.  
 
|Render the application.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::route/11.1|route]]
+
|[[API17:JApplication::route|route]]
 
|Route the application.  
 
|Route the application.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::setUserState/11.1|setUserState]]
+
|[[API17:JApplication::setUserState|setUserState]]
 
|Sets the value of a user state variable.  
 
|Sets the value of a user state variable.  
 
|-
 
|-
 
|public  
 
|public  
|[[JApplication::triggerEvent/11.1|triggerEvent]]
+
|[[API17:JApplication::triggerEvent|triggerEvent]]
 
|Calls all handlers associated with an event group.  
 
|Calls all handlers associated with an event group.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JApplication::getHash/11.1|getHash]]
+
|[[API17:JApplication::getHash|getHash]]
 
|Provides a secure hash based on a seed.  
 
|Provides a secure hash based on a seed.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JApplication::getInstance/11.1|getInstance]]
+
|[[API17:JApplication::getInstance|getInstance]]
 
|Returns the global  object, only creating it if it doesn't already exist.  
 
|Returns the global  object, only creating it if it doesn't already exist.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JApplication::getRouter/11.1|getRouter]]
+
|[[API17:JApplication::getRouter|getRouter]]
 
|Returns the application  object.  
 
|Returns the application  object.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JApplication::isWinOS/11.1|isWinOS]]
+
|[[API17:JApplication::isWinOS|isWinOS]]
 
|Method to determine if the host OS is Windows.  
 
|Method to determine if the host OS is Windows.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JApplication::registerEvent/11.1|registerEvent]]
+
|[[API17:JApplication::registerEvent|registerEvent]]
 
|Registers a handler to a particular event group.  
 
|Registers a handler to a particular event group.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JApplication::stringURLSafe/11.1|stringURLSafe]]
+
|[[API17:JApplication::stringURLSafe|stringURLSafe]]
 
|This method transliterates a string into an URL safe string or returns a URL safe UTF-8 string based on the global configuration.  
 
|This method transliterates a string into an URL safe string or returns a URL safe UTF-8 string based on the global configuration.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JApplication::_createConfiguration/11.1|_createConfiguration]]
+
|[[API17:JApplication::_createConfiguration|_createConfiguration]]
 
|Create the configuration registry.  
 
|Create the configuration registry.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JApplication::_createSession/11.1|_createSession]]
+
|[[API17:JApplication::_createSession|_createSession]]
 
|Create the user session.  
 
|Create the user session.  
 
|-
 
|-
 
|}
 
|}
 
* '''Defined in''' libraries/joomla/application/application.php
 
* '''Defined in''' libraries/joomla/application/application.php
* '''Extends''' [[JObject/11.1|JObject]]
+
* '''Extends''' [[API17:JObject|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.application.application' );</source>
 
<source lang="php">jimport( 'joomla.application.application' );</source>
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JApplication source code''' on [[jplatform:application/application.php|BitBucket]]
 
* {{JVer|11.1}} '''JApplication source code''' on [[jplatform:application/application.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Application/11.1|Application]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[JApplication|Other versions of JApplication]]
+
* [[API17:JApplication|Other versions of JApplication]]
 
{{SeeAlso:JApplication}}
 
{{SeeAlso:JApplication}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 169: Line 169:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JApplication]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 18:41, 11 May 2013

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.

Joomla 11.1 JApplication

Description

JApplication is the base class for a Joomla Application. It acts as a Factory class for application specific objects and provides many supporting API functions. Derived clases should supply the route(), dispatch() and render() functions. [Edit Descripton]

Methods

Visibility Method name Description
public __construct Class constructor.
public __toString Returns the response.
public checkSession Checks the user session.
public close Exit the application.
public dispatch Dispatch the applicaiton.
public enqueueMessage Enqueue a system message.
public getCfg
public getClientId Gets the client id of the current running application.
public getMenu Returns the application object.
public getMessageQueue Get the system message queue.
public getName Method to get the application name.
public getPathway Returns the application object.
public getTemplate Gets the name of the current template.
public getUserState Gets a user state.
public getUserStateFromRequest Gets the value of a user state variable.
public initialise Initialise the application.
public isAdmin Is admin interface?
public isSite Is site interface?
public login Login authentication function.
public logout Logout authentication function.
public redirect Redirect to another URL.
public render Render the application.
public route Route the application.
public setUserState Sets the value of a user state variable.
public triggerEvent Calls all handlers associated with an event group.
public static getHash Provides a secure hash based on a seed.
public static getInstance Returns the global object, only creating it if it doesn't already exist.
public static getRouter Returns the application object.
public static isWinOS Method to determine if the host OS is Windows.
public static registerEvent Registers a handler to a particular event group.
public static stringURLSafe This method transliterates a string into an URL safe string or returns a URL safe UTF-8 string based on the global configuration.
protected _createConfiguration Create the configuration registry.
protected _createSession Create the user session.
  • Defined in libraries/joomla/application/application.php
  • Extends JObject

Importing

jimport( 'joomla.application.application' );

See also

See Also

[Edit See Also]

User contributed notes

<CodeExamplesForm />