From 6b405b4e4e42e1a8ca4e24b120c1f20216fce9f5 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 3 Mar 2003 17:00:37 +0000 Subject: [PATCH] added static getGroupName method --- lib/groups/Group.inc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/groups/Group.inc b/lib/groups/Group.inc index b9fd8ab..19d3aad 100644 --- a/lib/groups/Group.inc +++ b/lib/groups/Group.inc @@ -173,7 +173,7 @@ class Group { return false; } -/** + /** * Static function * Get a list of web documents * @@ -200,7 +200,20 @@ class Group { return false; } - + /** + * static function + * + * gets the name of a unit using their id + * + * @param String + * The name + * + */ + function getGroupName($id) { + global $default; + $sName = lookupField("$default->owl_groups_table", "name", "id", $id ); + return $sName; + } } /* * static function -- libgit2 0.21.4