X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fuser%2Fclass_BaseUser.php;h=393ebee06bb2e4d430c18237b84e43242c7d4729;hp=58d0850aeceda931532a5b64b6b0424eeac357f8;hb=cad1ab5ecb2935a6ebf678555860c3bd96b525b0;hpb=af6e81a3d07cf468d3fa8cb53a9899790da2a7a1 diff --git a/framework/main/classes/user/class_BaseUser.php b/framework/main/classes/user/class_BaseUser.php index 58d0850a..393ebee0 100644 --- a/framework/main/classes/user/class_BaseUser.php +++ b/framework/main/classes/user/class_BaseUser.php @@ -1,20 +1,25 @@ * @version 0.0.0 +<<<<<<< HEAD:framework/main/classes/user/class_BaseUser.php * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team +======= + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team +>>>>>>> Some updates::inc/main/classes/user/class_BaseUser.php * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -31,7 +36,7 @@ use CoreFramework\Wrapper\Database\User\UserDatabaseWrapper; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseUser extends BaseFrameworkSystem implements Updateable { +abstract class BaseUser extends BaseFrameworkSystem implements Updateable { // Exception constances const EXCEPTION_USERNAME_NOT_FOUND = 0x150; const EXCEPTION_USER_EMAIL_NOT_FOUND = 0x151; @@ -129,7 +134,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 +164,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 +178,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 +208,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 +233,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)) {