]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/user/class_User.php
Client renamed in Wrapper
[shipsimu.git] / inc / classes / main / user / class_User.php
index 3a31883cc16eca3e1ea39b8849ba81aa2b606ad2..62c4f17e9d15b913a1a993fad06fd58fbbf6f6bd 100644 (file)
@@ -27,6 +27,11 @@ class User extends BaseFrameworkSystem implements ManageableUser {
         */
        private $username = "";
 
+       /**
+        * An instance of a database wrapper
+        */
+       private $userWrapper = null;
+
        // Exceptions
        const EXCEPTION_USERNAME_NOT_FOUND = 0xd00;
 
@@ -107,11 +112,11 @@ class User extends BaseFrameworkSystem implements ManageableUser {
                // By default the username does exist
                $exists = true;
 
-               // Try to get a UserDatabaseClient object back
+               // Try to get a UserDatabaseWrapper object back
                try {
                        // Get the instance by providing this class
-                       $this->userClient = UserDatabaseClient::createUserDatabaseClient($this);
-               } catch (ClientUserNameNotFoundException $e) {
+                       $this->userWrapper = UserDatabaseWrapper::createUserDatabaseWrapper($this);
+               } catch (WrapperUserNameNotFoundException $e) {
                        // Does not exist!
                        $exists = false;
                }