*/
private $username = "";
+ /**
+ * An instance of a database wrapper
+ */
+ private $userWrapper = null;
+
// Exceptions
const EXCEPTION_USERNAME_NOT_FOUND = 0xd00;
// 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;
}