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
*/
public function ifUsernameExists () {
// By default the username does not exist
- $exists = FALSE;
+ $exists = false;
// Is a previous result there?
if (!$this->getResultInstance() instanceof SearchableResult) {
// Search for it
if ($this->getResultInstance()->next()) {
// Entry found
- $exists = TRUE;
+ $exists = true;
} // END - if
// Return the status
*/
public function ifEmailAddressExists () {
// By default the email does not exist
- $exists = FALSE;
+ $exists = false;
// Is a previous result there?
if (!$this->getResultInstance() instanceof SearchableResult) {
// Search for it
if ($this->getResultInstance()->next()) {
// Entry found
- $exists = TRUE;
+ $exists = true;
// Is the username set?
if ($this->getUserName() == '') {
*/
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)) {