API15

JUser/ construct

From Joomla! Documentation

< API15:JUser

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Constructor activating the default information of the language

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

__construct($identifier=0)
Parameter Name Default Value Description
$identifier 0

Defined in[edit]

libraries/joomla/user/user.php

Importing[edit]

jimport( 'joomla.user.user' );

Source Body[edit]

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[edit]

Code Examples[edit]