API15:JApplication
From Joomla! Documentation
[Edit Descripton] Template:Description:JApplication
Defined in
libraries/joomla/application/application.php
Methods
| Method name | Description |
|---|---|
| __construct | Class constructor. |
| initialise | Initialise the application. |
| route | Route the application. |
| dispatch | Dispatch the applicaiton. |
| render | Render the application. |
| close | Exit the application. |
| redirect | Redirect to another URL. |
| enqueueMessage | Enqueue a system message. |
| getMessageQueue | Get the system message queue. |
| getCfg | |
| getName | Method to get the application name. |
| getUserState | Gets a user state. |
| setUserState | Sets the value of a user state variable. |
| getUserStateFromRequest | Gets the value of a user state variable. |
| login | Login authentication function. |
| logout | Logout authentication function. |
| getTemplate | Gets the name of the current template. |
| getPathway | Returns the application JPathway object. |
| getMenu | Returns the application JPathway object. |
| getClientId | Gets the client id of the current running application. |
| isAdmin | Is admin interface? |
| isSite | Is site interface? |
| __toString | Returns the response |
| getInstance | Returns the global JApplication object, only creating it if it doesn't already exist. |
| registerEvent | Registers a handler to a particular event group. |
| triggerEvent | Calls all handlers associated with an event group. |
| getRouter | Returns the application JRouter object. |
| stringURLSafe | This method transliterates a string into an URL safe string or returns a URL safe UTF-8 string based on the global configuration |
| getHash | Provides a secure hash based on a seed |
| isWinOS | Method to determine if the host OS is Windows |
Importing
jimport( 'joomla.application.application' );
[Edit See Also] Template:SeeAlso:JApplication
Examples
<CodeExamplesForm />