/** * Constructs a new User object. * @param int $id The DB id for this user. * @param String $username The username for this user. * @param String $password The password for this user. * @param String $email The email for this user. * @param Datetime $lastLogin The last login time for this user. * @param boolean $enabled Whether or not this user account is enabled. */ public function __construct($id, $username, $password, $email, $lastLogin, $enabled) { parent::__construct($id); $this->username = $username; $this->password = $password; $this->email = $email; $this->lastLogin = $lastLogin; $this->enabled = $enabled; }
/** * Constructs a new user preferences object. * @param $id The DB id of this object. * @param $userId The id of the user this object corresponds to. */ public function __construct($id, $userId) { parent::__construct($id); $this->userId = $userId; }
public function __construct($id = NULL) { parent::__construct($id); }
/** * Constructs a new ImageData object. * @param int $id The DB id of this object. Defaults to NULL. */ public function __construct($id = NULL) { parent::__construct($id); $this->attributeList = array(); }