Joomla! Programmierung/Framework/JApplication

Aus Joomla! Dokumentation
Wechseln zu: Navigation, Suche

JApplication ist die Basisklasse für Joomla! - Anwendungen. Sie fungiert als Factory - Klasse für anwendungssprezifische Objekte und bietet die Unterstützung einiger API - Funktionen. Abgeleitete Klassen, sollten die Funktionen "route( )", "displatch( )" und "render( )" nutzen.

Inhaltsverzeichnis

[Bearbeiten] Definiert in

Folder blue.png /libraries/joomla

  • Folder red.png application
    • File php.png application.php

[Bearbeiten] Status

  • @since Joomla 1.5

[Bearbeiten] Erweitert

JObject

[Bearbeiten] Statische Methoden

Sichtbarkeit Name Beschreibung
public getHash Joomla 1.6 Gibt einen verschlüsselten String mit einem angegebenen Manipulationswert (seed) zurück.
public getInstance Joomla 1.5 Gibt die aktuelle Singeltoninstanz zurück oder erstellt sie, falls noch keine existiert.
public getRouter Joomla 1.5 Gibt das JRouter-Object der Singeltoninstanz von JApplication zurück.
public isWinOS Joomla 1.5 Überprüft, ob der Host unter dem Betriebssystem Windows operiert.
public registerEvent Joomla 1.5 Fügt einen Eventhandler zu einer Eventgruppe hinzu.
public stringURLSafe Joomla 1.5 Gibt einen sicheren URL-String im Unicode oder UTF-8 Encoding zurück.

[Bearbeiten] Instanzmethoden

Sichtbarkeit Name Beschreibung
public __construct Joomla 1.5 Class constructor.
public __toString Joomla 1.6 Returns the response.
protected __toString Joomla 1.5 ToDo Beschreibung!
protected _createSession Joomla 1.5 ToDo Beschreibung!
public addCustomHeadTag @deprecated, use JDocument⇒addCustomTag instead (only when document type is HTML).
public addMetaTag @deprecated, use JDocument⇒setMetaData instead.
public appendMetaTag @deprecated, use JDocument⇒setMetaData instead.
public appendPathWay @deprecated, use JPathWay⇒addItem() method instead.
public close Exit the application.
public dispatch Dispatch the applicaiton.
public enqueueMessage Enqueue a system message.
public getBasePath @deprecated, use JURI::base() instead.
public getBlogCategoryCount @deprecated.
public getBlogSectionCount @deprecated.
public getCfg Gets a configuration value.
public getClientId Gets the client id of the current running application.
public getContentItemLinkCount @deprecated.
public getCustomPathWay @deprecated, use JPathway⇒getPathWayNames() method instead.
public getGlobalBlogSectionCount @deprecated.
public getHead @deprecated, use JDocument⇒get( 'head' ) instead.
public getInstance Returns a reference to the global JApplication object, only creating it if it doesn't already exist.
public getItemid @deprecated, use ContentHelper::getItemid instead.
public getMenu Return a reference to the application JPathway object.
public getMessageQueue Get the system message queue.
public getName Method to get the application name
public getPageTitle @deprecated, use JDocument::getTitle instead.
public getPath @deprecated, use JApplicationHelper::getPath instead.
public getPathway Return a reference to the application JPathway object.
public getRouter Return a reference to the application JRouter object.
public getStaticContentCount @deprecated.
public getTemplate Gets the name of the current template.
public getUser @deprecated, use JFactory::getUser instead.
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 prependMetaTag @deprecated, use JDocument⇒setMetaData instead
public redirect Redirect to another URL.
public registerEvent Registers a handler to a particular event group.
public render Render the application. Rendering is the process of pushing the document buffers into the template placeholders, retrieving data from the document and pushing it into the JResponse buffer.
public route Route the application. Routing is the process of examining the request environment to determine which component should receive the request. The component optional parameters are then set in the request object to be processed when the application is being dispatched.
public setPageTitle @deprecated, use JDocument::setTitle instead.
public setUserState Sets the value of a user state variable.
public triggerEvent Calls all handlers associated with an event group.

[Bearbeiten] Importing

jimport( 'joomla.application.application' );

[Bearbeiten] Siehe auch

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Sonstiges
Team Navigation
Werkzeuge