diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-09-16 16:49:58 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-09-16 16:49:58 +0200 |
commit | bb9f9274e8c2d661a1adffd87c87c3d81ec47b4d (patch) | |
tree | 3a484bddf9f11da67c1c743443ae5140cf455fb9 /application/libraries/Duser/Duser.php | |
parent | 2172c2049fc8b8eca5dbed7b659a089e20d1fadd (diff) |
Duser: Rework optional functions
Not implemented functions return null and code using these no longer
has to check if they are implemented, but it has to handle null
properly.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Duser/Duser.php')
-rw-r--r-- | application/libraries/Duser/Duser.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/application/libraries/Duser/Duser.php b/application/libraries/Duser/Duser.php index b615528f7..38ee967c9 100644 --- a/application/libraries/Duser/Duser.php +++ b/application/libraries/Duser/Duser.php @@ -9,14 +9,11 @@ abstract class Duser_Driver extends CI_Driver { - // List of optional functions or function groups that are implemented + // List of optional functions that are implemented // - // Possible values are names of functions already implemented in this - // abstract class or the function groups listed below. - // - // Possible function groups are: - // - can_register_new_users - // - can_reset_password + // Possible values are: + // - can_register_new_users (only supported with the DB driver!) + // - can_reset_password (only supported with the DB driver!) public $optional_functions = array(); /* @@ -101,8 +98,6 @@ class Duser extends CI_Driver_Library { public function username_exists($username) { - $this->require_implemented(__FUNCTION__); - if ($username === false) { return false; } |