summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/Identity.php7
-rw-r--r--modules/gallery/libraries/drivers/Identity.php7
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Identity.php b/modules/gallery/libraries/Identity.php
index 3ef13a6d..1dd5d23b 100644
--- a/modules/gallery/libraries/Identity.php
+++ b/modules/gallery/libraries/Identity.php
@@ -193,6 +193,13 @@ class Identity_Core {
}
/**
+ * @see Identity_Driver::lookup_group.
+ */
+ static function lookup_group($id) {
+ return self::instance()->driver->lookup_group($id);
+ }
+
+ /**
* @see Identity_Driver::lookup_group_by_name.
*/
static function lookup_group_by_name($name) {
diff --git a/modules/gallery/libraries/drivers/Identity.php b/modules/gallery/libraries/drivers/Identity.php
index b77eb6be..5b35d49b 100644
--- a/modules/gallery/libraries/drivers/Identity.php
+++ b/modules/gallery/libraries/drivers/Identity.php
@@ -98,6 +98,13 @@ interface Identity_Driver {
public function get_user_list($ids);
/**
+ * Look up a group by id.
+ * @param integer id
+ * @return Group_Definition the user object, or null if the name was invalid.
+ */
+ static function lookup_group($id);
+
+ /**
* List the groups defined in the Identity Provider
*/
static function groups();