API16

JUser/ construct

From Joomla! Documentation

< API16:JUser

The "API16" 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



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->sendEmail = 0;
                $this->aid              = 0;
                $this->guest    = 1;
        }
}



Examples[edit]

Code Examples[edit]