X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fuser%2Fguest%2Fclass_Guest.php;h=84405dc47a9ba8fcb7daf77d6eb579b1c1eb71bf;hb=ec23e72b16433ac136817f3ea78697fb70236e4a;hp=7868a5a8d366eaf717126e6e26758c1c0f04a48b;hpb=2e5bed21bd0f9420a663f9a603432c536b2035d0;p=shipsimu.git diff --git a/inc/classes/main/user/guest/class_Guest.php b/inc/classes/main/user/guest/class_Guest.php index 7868a5a..84405dc 100644 --- a/inc/classes/main/user/guest/class_Guest.php +++ b/inc/classes/main/user/guest/class_Guest.php @@ -30,21 +30,11 @@ class Guest extends BaseUser implements ManageableGuest, Registerable { /** * 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__); } /** @@ -82,7 +72,7 @@ class Guest extends BaseUser implements ManageableGuest, Registerable { */ public final static function createGuestByEmail ($email) { // Get a new instance - $userInstance = new User(); + $userInstance = new Guest(); // Set the username $userInstance->setEmail($email);