/**
* Protected constructor
*
- * @param $className Name of the class
* @return void
*/
- protected function __construct ($className = "") {
- // Is the class name empty? Then this is not a specialized user class
- if (empty($className)) $className = __CLASS__;
-
+ protected function __construct () {
// Call parent constructor
- parent::__construct($className);
-
- // Set part description
- $this->setObjectDescription("Generic user class");
-
- // Create unique ID number
- $this->generateUniqueId();
+ parent::__construct(__CLASS__);
}
/**
*/
public final static function createGuestByEmail ($email) {
// Get a new instance
- $userInstance = new User();
+ $userInstance = new Guest();
// Set the username
$userInstance->setEmail($email);