Support Joomla!

references:joomla.framework:application:japplication-__construct

Table of Contents

__construct

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method __construct Reference __construct() Never Internal Review

Constructor for the JApplication class. The client ID and request time (current time) is stored.

Syntax

JApplication __construct ( $clientId )

$clientId integer is an integer containing the client identifier. The client ID is 0 for site, 1 for administrator and 2 for installation. This parameter is optional and if omitted defaults to 0.

Examples

This method is invoked by the JAdministrator class (which extends JApplication) in the following manner (this class is defined in /administrator/includes/application.php):

Example

parent::__construct( 1 );

 
references/joomla.framework/application/japplication-__construct.txt (456 views) · Last modified: 2007/09/22 02:46