X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fuser%2Fclass_BaseUser.php;h=2dd1d9f4363226d611bc60a3921cdabb190e3c6a;hb=63f5632b0c5d2cebf8dd0940fdab561f86470f80;hp=58d0850aeceda931532a5b64b6b0424eeac357f8;hpb=af6e81a3d07cf468d3fa8cb53a9899790da2a7a1;p=core.git diff --git a/framework/main/classes/user/class_BaseUser.php b/framework/main/classes/user/class_BaseUser.php index 58d0850a..2dd1d9f4 100644 --- a/framework/main/classes/user/class_BaseUser.php +++ b/framework/main/classes/user/class_BaseUser.php @@ -3,11 +3,12 @@ namespace CoreFramework\User; // Import framework stuff +use CoreFramework\Database\Frontend\User\UserDatabaseWrapper; +use CoreFramework\Database\Updateable; use CoreFramework\Factory\ObjectFactory; use CoreFramework\Object\BaseFrameworkSystem; use CoreFramework\Request\Requestable; use CoreFramework\Result\Search\SearchableResult; -use CoreFramework\Wrapper\Database\User\UserDatabaseWrapper; /** * A general user class @@ -129,7 +130,7 @@ class BaseUser extends BaseFrameworkSystem implements Updateable { */ public function ifUsernameExists () { // By default the username does not exist - $exists = FALSE; + $exists = false; // Is a previous result there? if (!$this->getResultInstance() instanceof SearchableResult) { @@ -159,7 +160,7 @@ class BaseUser extends BaseFrameworkSystem implements Updateable { // Search for it if ($this->getResultInstance()->next()) { // Entry found - $exists = TRUE; + $exists = true; } // END - if // Return the status @@ -173,7 +174,7 @@ class BaseUser extends BaseFrameworkSystem implements Updateable { */ public function ifEmailAddressExists () { // By default the email does not exist - $exists = FALSE; + $exists = false; // Is a previous result there? if (!$this->getResultInstance() instanceof SearchableResult) { @@ -203,7 +204,7 @@ class BaseUser extends BaseFrameworkSystem implements Updateable { // Search for it if ($this->getResultInstance()->next()) { // Entry found - $exists = TRUE; + $exists = true; // Is the username set? if ($this->getUserName() == '') { @@ -228,7 +229,7 @@ class BaseUser extends BaseFrameworkSystem implements Updateable { */ public function ifPasswordHashMatches (Requestable $requestInstance) { // By default nothing matches... ;) - $matches = FALSE; + $matches = false; // Is a previous result there? if ((!$this->getResultInstance() instanceof SearchableResult) || ($this->getResultInstance()->count() == 0)) {