summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/group.php4
-rw-r--r--modules/user/helpers/user.php15
2 files changed, 14 insertions, 5 deletions
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php
index cf5c050f..8ad52564 100644
--- a/modules/user/helpers/group.php
+++ b/modules/user/helpers/group.php
@@ -42,14 +42,14 @@ class group_Core {
* @see Identity_Driver::everbody.
*/
static function everybody() {
- return Identity::instance()->everybody();
+ return model_cache::get("group", 1);
}
/**
* @see Identity_Driver::registered_users.
*/
static function registered_users() {
- return Identity::instance()->everybody();
+ return model_cache::get("group", 2);
}
/**
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php
index fa7b320f..5ef2b726 100644
--- a/modules/user/helpers/user.php
+++ b/modules/user/helpers/user.php
@@ -25,14 +25,21 @@
*/
class user_Core {
/**
- * @see Identity_Driver::guest.
+ * Return the guest user.
+ *
+ * @return User_Model the user object
*/
static function guest() {
return model_cache::get("user", 1);
}
/**
- * @see Identity_Driver::create_user.
+ * Create a new user.
+ *
+ * @param string $name
+ * @param string $full_name
+ * @param string $password
+ * @return User_Definition the user object
*/
static function create($name, $full_name, $password) {
$user = ORM::factory("user")->where("name", $name)->find();
@@ -53,7 +60,9 @@ class user_Core {
}
/**
- * @see Identity_Driver::hash_password.
+ * Hash the password to the internal value
+ * @param string $password the user password
+ * @param string The hashed equivalent
*/
static function hash_password($password) {
require_once(MODPATH . "user/lib/PasswordHash.php");