]> git.mxchange.org Git - core.git/commit
Added isGuest() isConfirmed() to BaseUser for wrapping this type of check into
authorRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 22:52:07 +0000 (00:52 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 22:52:42 +0000 (00:52 +0200)
commitcbd2f71aee1c3daca3d11acc346c79757852316f
tree76fff3d156106b7bcf5ed9fa30d863ed23d2c3a0
parent606d43cc38f3cefd2c899f99c03dbd8cfb625441
Added isGuest() isConfirmed() to BaseUser for wrapping this type of check into
small methods. Also these methods are used to check the user instance before it
is being returned to other classes (see their factory methods).

Also 2 new exceptions has been added for above pre-checks.

Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/exceptions/user/class_AccountPasswordMismatchException.php
inc/classes/exceptions/user/class_UnexpectedGuestAccountException.php [new file with mode: 0644]
inc/classes/exceptions/user/class_UserEmailMissingException.php
inc/classes/exceptions/user/class_UserNoGuestException.php [new file with mode: 0644]
inc/classes/exceptions/user/class_UserPasswordMismatchException.php
inc/classes/exceptions/user/class_UsernameMissingException.php
inc/classes/main/filter/verifier/class_UserStatusVerifierFilter.php
inc/classes/main/user/class_BaseUser.php
inc/classes/main/user/guest/class_Guest.php
inc/classes/main/user/member/class_Member.php