API16:JUser/ construct
From Joomla! Documentation
Description
Constructor activating the default information of the language
Syntax
__construct($identifier=0)
| Parameter Name | Default Value | Description |
|---|---|---|
| $identifier | 0 |
Defined in
libraries/joomla/user/user.php
Importing
jimport( 'joomla.user.user' );
Source Body
function __construct($identifier = 0)
{
// Create the user parameters object
$this->_params = new JParameter('');
// Load the user if it exists
if (!empty($identifier)) {
$this->load($identifier);
}
else
{
//initialise
$this->id = 0;
$this->sendEmail = 0;
$this->aid = 0;
$this->guest = 1;
}
}
Examples
Code Examples