summaryrefslogtreecommitdiffstats
path: root/application/libraries
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-16 16:43:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-16 16:49:11 +0200
commit2172c2049fc8b8eca5dbed7b659a089e20d1fadd (patch)
tree2b4f38e2b410c08b4e2d810d2f1ac8961ffdbcdb /application/libraries
parenta301dbf1cbe6d001e3488c458fd0868ff0608888 (diff)
Duser: Add some comments
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries')
-rw-r--r--application/libraries/Duser/Duser.php10
-rw-r--r--application/libraries/Duser/drivers/Duser_db.php4
2 files changed, 14 insertions, 0 deletions
diff --git a/application/libraries/Duser/Duser.php b/application/libraries/Duser/Duser.php
index 42d6b1d62..b615528f7 100644
--- a/application/libraries/Duser/Duser.php
+++ b/application/libraries/Duser/Duser.php
@@ -24,14 +24,24 @@ abstract class Duser_Driver extends CI_Driver {
* - username string
* - userid INT > 0
*
+ * @param username
+ * @param password
* @return mixed array on success, false on failure
*/
abstract public function login($username, $password);
+ /*
+ * @param username
+ * @return boolean true is username exists, false otherwise
+ */
public function username_exists($username) {
return null;
}
+ /*
+ * @param userid
+ * @return string email address of the user
+ */
public function get_email($userid) {
return null;
}
diff --git a/application/libraries/Duser/drivers/Duser_db.php b/application/libraries/Duser/drivers/Duser_db.php
index 1258ec585..5252ec48e 100644
--- a/application/libraries/Duser/drivers/Duser_db.php
+++ b/application/libraries/Duser/drivers/Duser_db.php
@@ -9,6 +9,10 @@
class Duser_db extends Duser_Driver {
+ /* FIXME: If you use this driver as a template, remove can_reset_password
+ * and can_register_new_users. These features require the DB driver and
+ * will NOT work with other drivers.
+ */
public $optional_functions = array(
'username_exists',
'can_reset_password',