| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JApplication |
__construct |
__construct() |
Never | Internal Review |
Constructor for the JApplication class. The client ID and request time (current time) is stored.
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. |
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 );