Difference between revisions of "JApplication"
From Joomla! Documentation
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JApplication}}
===Defined in...) |
|||
Line 14: | Line 14: | ||
|[[API15:JApplication/__construct|__construct]] | |[[API15:JApplication/__construct|__construct]] | ||
|Class constructor. | |Class constructor. | ||
+ | |- | ||
+ | |[[API15:JApplication/getInstance|getInstance]] | ||
+ | |Returns a reference to the global JApplication object, only creating it if it doesn't already exist. | ||
|- | |- | ||
|[[API15:JApplication/initialise|initialise]] | |[[API15:JApplication/initialise|initialise]] | ||
Line 43: | Line 46: | ||
|- | |- | ||
|[[API15:JApplication/getName|getName]] | |[[API15:JApplication/getName|getName]] | ||
− | |Method to get the application name | + | |Method to get the application name |
|- | |- | ||
|[[API15:JApplication/getUserState|getUserState]] | |[[API15:JApplication/getUserState|getUserState]] | ||
Line 62: | Line 65: | ||
|[[API15:JApplication/getTemplate|getTemplate]] | |[[API15:JApplication/getTemplate|getTemplate]] | ||
|Gets the name of the current template. | |Gets the name of the current template. | ||
+ | |- | ||
+ | |[[API15:JApplication/getRouter|getRouter]] | ||
+ | |Return a reference to the application JRouter object. | ||
|- | |- | ||
|[[API15:JApplication/getPathway|getPathway]] | |[[API15:JApplication/getPathway|getPathway]] | ||
− | | | + | |Return a reference to the application JPathway object. |
|- | |- | ||
|[[API15:JApplication/getMenu|getMenu]] | |[[API15:JApplication/getMenu|getMenu]] | ||
− | | | + | |Return a reference to the application JPathway object. |
|- | |- | ||
|[[API15:JApplication/getClientId|getClientId]] | |[[API15:JApplication/getClientId|getClientId]] | ||
Line 78: | Line 84: | ||
|Is site interface? | |Is site interface? | ||
|- | |- | ||
− | |[[API15:JApplication/ | + | |[[API15:JApplication/appendPathWay|appendPathWay]] |
− | | | + | |Deprecated functions Deprecated, use JPathWay->addItem() method instead. |
+ | |- | ||
+ | |[[API15:JApplication/getCustomPathWay|getCustomPathWay]] | ||
+ | |Deprecated, use JPathway->getPathWayNames() method instead. | ||
+ | |- | ||
+ | |[[API15:JApplication/getHead|getHead]] | ||
+ | |Deprecated, use JDocument->get( 'head' ) instead. | ||
+ | |- | ||
+ | |[[API15:JApplication/addMetaTag|addMetaTag]] | ||
+ | |Deprecated, use JDocument->setMetaData instead. | ||
+ | |- | ||
+ | |[[API15:JApplication/appendMetaTag|appendMetaTag]] | ||
+ | |Deprecated, use JDocument->setMetaData instead. | ||
+ | |- | ||
+ | |[[API15:JApplication/prependMetaTag|prependMetaTag]] | ||
+ | |Deprecated, use JDocument->setMetaData instead | ||
+ | |- | ||
+ | |[[API15:JApplication/addCustomHeadTag|addCustomHeadTag]] | ||
+ | |Deprecated, use JDocument->addCustomTag instead (only when document type is HTML). | ||
+ | |- | ||
+ | |[[API15:JApplication/getBlogSectionCount|getBlogSectionCount]] | ||
+ | |Deprecated. | ||
+ | |- | ||
+ | |[[API15:JApplication/getBlogCategoryCount|getBlogCategoryCount]] | ||
+ | |Deprecated. | ||
+ | |- | ||
+ | |[[API15:JApplication/getGlobalBlogSectionCount|getGlobalBlogSectionCount]] | ||
+ | |Deprecated. | ||
+ | |- | ||
+ | |[[API15:JApplication/getStaticContentCount|getStaticContentCount]] | ||
+ | |Deprecated. | ||
+ | |- | ||
+ | |[[API15:JApplication/getContentItemLinkCount|getContentItemLinkCount]] | ||
+ | |Deprecated. | ||
+ | |- | ||
+ | |[[API15:JApplication/getPath|getPath]] | ||
+ | |Deprecated, use JApplicationHelper::getPath instead. | ||
|- | |- | ||
− | |[[API15:JApplication/ | + | |[[API15:JApplication/getBasePath|getBasePath]] |
− | | | + | |Deprecated, use JURI::base() instead. |
+ | |- | ||
+ | |[[API15:JApplication/getUser|getUser]] | ||
+ | |Deprecated, use JFactory::getUser instead. | ||
+ | |- | ||
+ | |[[API15:JApplication/getItemid|getItemid]] | ||
+ | |Deprecated, use ContentHelper::getItemid instead. | ||
+ | |- | ||
+ | |[[API15:JApplication/setPageTitle|setPageTitle]] | ||
+ | |Deprecated, use JDocument::setTitle instead. | ||
+ | |- | ||
+ | |[[API15:JApplication/getPageTitle|getPageTitle]] | ||
+ | |Deprecated, use JDocument::getTitle instead. | ||
|- | |- | ||
|[[API15:JApplication/registerEvent|registerEvent]] | |[[API15:JApplication/registerEvent|registerEvent]] | ||
Line 89: | Line 143: | ||
|[[API15:JApplication/triggerEvent|triggerEvent]] | |[[API15:JApplication/triggerEvent|triggerEvent]] | ||
|Calls all handlers associated with an event group. | |Calls all handlers associated with an event group. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
===Importing=== | ===Importing=== |
Revision as of 17:08, 22 March 2010
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[Edit Descripton] Template:Description:JApplication
Defined in[edit]
libraries/joomla/application/application.php
Methods[edit]
Method name | Description |
---|---|
__construct | Class constructor. |
getInstance | Returns a reference to the global JApplication object, only creating it if it doesn't already exist. |
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. |
getRouter | Return a reference to the application JRouter object. |
getPathway | Return a reference to the application JPathway object. |
getMenu | Return a reference to the application JPathway object. |
getClientId | Gets the client id of the current running application. |
isAdmin | Is admin interface? |
isSite | Is site interface? |
appendPathWay | Deprecated functions Deprecated, use JPathWay->addItem() method instead. |
getCustomPathWay | Deprecated, use JPathway->getPathWayNames() method instead. |
getHead | Deprecated, use JDocument->get( 'head' ) instead. |
addMetaTag | Deprecated, use JDocument->setMetaData instead. |
appendMetaTag | Deprecated, use JDocument->setMetaData instead. |
prependMetaTag | Deprecated, use JDocument->setMetaData instead |
addCustomHeadTag | Deprecated, use JDocument->addCustomTag instead (only when document type is HTML). |
getBlogSectionCount | Deprecated. |
getBlogCategoryCount | Deprecated. |
getGlobalBlogSectionCount | Deprecated. |
getStaticContentCount | Deprecated. |
getContentItemLinkCount | Deprecated. |
getPath | Deprecated, use JApplicationHelper::getPath instead. |
getBasePath | Deprecated, use JURI::base() instead. |
getUser | Deprecated, use JFactory::getUser instead. |
getItemid | Deprecated, use ContentHelper::getItemid instead. |
setPageTitle | Deprecated, use JDocument::setTitle instead. |
getPageTitle | Deprecated, use JDocument::getTitle instead. |
registerEvent | Registers a handler to a particular event group. |
triggerEvent | Calls all handlers associated with an event group. |
Importing[edit]
jimport( 'joomla.application.application' );
[Edit See Also] Template:SeeAlso:JApplication
Examples[edit]
<CodeExamplesForm />