summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-23 10:52:42 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-23 10:52:42 -0700
commitc24d01bb9cb8c5bcccfe8a8bf944038dc15cf433 (patch)
tree9f4533293a39abce0e671dc59b0338f3f60f17fa /modules/user/helpers
parentd0186436de5b282490779a6add014f5f31bd8834 (diff)
Standardize the use of the lookup methods
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/group.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php
index 567b2ee4..e65b6c96 100644
--- a/modules/user/helpers/group.php
+++ b/modules/user/helpers/group.php
@@ -65,7 +65,7 @@ class group_Core {
* @return Group_Definition the group object, or null if the id was invalid.
*/
static function lookup($id) {
- return self::lookup_by_field("id", $id);
+ return self::_lookup_by_field("id", $id);
}
/**
@@ -74,7 +74,7 @@ class group_Core {
* @return Group_Definition the group object, or null if the name was invalid.
*/
static function lookup_by_name($name) {
- return self::lookup_by_field("name", $name);
+ return self::_lookup_by_field("name", $name);
}
/**
@@ -83,7 +83,7 @@ class group_Core {
* @param string $value value to match
* @return Group_Definition the group object, or null if the name was invalid.
*/
- static function lookup_by_field($field_name, $value) {
+ private function _lookup_by_field($field_name, $value) {
try {
$user = model_cache::get("group", $value, $field_name);
if ($user->loaded) {