API15:JUser/ construct
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Constructor activating the default information of the language
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
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->gid = 0; $this->sendEmail = 0; $this->aid = 0; $this->guest = 1; } }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
