/**
* 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);
+ parent::__construct(__CLASS__);
// Set part description
- $this->setObjectDescription("Generic user class");
+ $this->setObjectDescription("Generic guest class");
// Create unique ID number
$this->generateUniqueId();
*/
public final static function createGuestByEmail ($email) {
// Get a new instance
- $userInstance = new User();
+ $userInstance = new Guest();
// Set the username
$userInstance->setEmail($email);