Actions

API16

JUser/ construct

From Joomla! Documentation

< API16:JUser
Revision as of 16:43, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
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

[Edit Descripton]

Description:JUser/ construct

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;
        }
}

[Edit See Also] SeeAlso:JUser/ construct

Examples

<CodeExamplesForm />