JApplication
Base class for a Joomla! application.
Acts as a Factory class for application specific objects and provides many supporting API functions. Derived clases should supply the execute() and dispaly() functions.
Located in /joomla/application/application.php (line 34)
JObject (Subpackage Base) JApplication (Subpackage Application)
The client identifier.
The application message queue.
The router object
Class constructor.
- integer $clientId: A client identifier.
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Deprecated, use JDocument->addCustomTag instead (only when document type is HTML).
- string $html: Valid HTML
Deprecated, use JDocument->setMetaData instead.
- string $name: Name of the metadata tag
- string $content: Content of the metadata tag
- string $prepend: Deprecated, ignored
- string $append: Deprecated, ignored
Deprecated, use JDocument->setMetaData instead.
- string $name: Name of the metadata tag
- string $content: Content of the metadata tag
Deprecated, use JPathWay->addItem() method instead.
- $name
- $link
Dispatch the applicaiton.
Dispatching is the process of pulling the option from the request object and mapping them to a component. If the component do not exist, it handles determining a default component to dispatch
Enqueue a system message.
- string $msg: The message to enqueue.
- string $type: The message type.
Deprecated, use JURI::base() instead.
- $client
- $addTrailingSlash
Gets a configuration value.
- string $varname: The name of the value to get.
Deprecated, use JPathWay->getPathWayNames() method instead.
Deprecated, use JApplicationHelper::getPath instead.
- $varname
- $user_option
Gets a user state.
- string $key: The path of the state.
Gets the value of a user state variable.
- string $key: The key of the user state variable.
- string $request: The name of the variable passed in a request.
- string $default: The default value for the variable if not found. Optional.
Initialise the application.
- array $options: An optional associative array of configuration settings.
Load the configuration
- string 1: The type of the configuration file
- string $file: The path to the configuration file
Load the user session.
- string $name: The session's name.
Login authentication function.
Username and encoded password are passed the the onLoginUser event which is responsible for the user validation. A successful validation updates the current session record with the users details.
Username and encoded password are sent as credentials (along with other possibilities) to each observer (JAuthenticatePlugin) for user validation. Successful validation will update the current session with the user details.
- string $username: The username.
- string $password: The password.
- boolean $remember: True, if the user login needs to be remembered by the application.
Logout authentication function.
Passed the current user information to the onLogoutUser event and reverts the current session record back to 'anonymous' parameters.
Deprecated, use JDocument->setMetaData instead
- string $name: Name of the metadata tag
- string $content: Content of the metadata tag
Redirect to another URL.
Optionally enqueues a message in the system message queue (which will be displayed the next time a page is loaded) using the enqueueMessage method. If the headers have not been sent the redirect will be accomplished using a "301 Moved Permanently" code in the header pointing to the new location. If the headers have already been sent this will be accomplished using a JavaScript statement.
- string $url: The URL to redirect to.
- string $msg: An optional message to display on redirect.
- string $msgType: An optional message type.
Registers a handler to a particular event group.
- string $event: The event name.
- mixed $handler: The handler, a function or an instance of a event object.
Render the application.
Rendering is the process of rendering the application into the JResponse buffer
Route the applicaiton.
Routing is the process of examining the request environment to determine which which component should receive the request. This component optional parameters are then set in the request object to be processed when the application is being dispatched
Sets the value of a user state variable.
- string $key: The path of the state.
- string $value: The value of the variable.
Calls all handlers associated with an event group.
- string $event: The event name.
- array $args: An array of arguments.
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getPublicProperties()
JObject::set()
JObject::toString()
Documentation generated on Mon, 05 Mar 2007 20:52:14 +0000 by phpDocumentor 1.3.1