/**
* 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);
public function flushPendingUpdates () {
// No updates will be flushed to database!
}
-
- /**
- * Adds data for later complete update
- *
- * @param $column Column we want to update
- * @param $value New value to store in database
- * @return void
- */
- public function addUpdateData ($column, $value) {
- // Nothing shall be updated by user him/her self
- }
}
// [EOF]