Commit 6b405b4e4e42e1a8ca4e24b120c1f20216fce9f5

Authored by michael
1 parent ad8471c4

added static getGroupName method


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1286 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 15 additions and 2 deletions
lib/groups/Group.inc
@@ -173,7 +173,7 @@ class Group { @@ -173,7 +173,7 @@ class Group {
173 return false; 173 return false;
174 } 174 }
175 175
176 -/** 176 + /**
177 * Static function 177 * Static function
178 * Get a list of web documents 178 * Get a list of web documents
179 * 179 *
@@ -200,7 +200,20 @@ class Group { @@ -200,7 +200,20 @@ class Group {
200 return false; 200 return false;
201 } 201 }
202 202
203 - 203 + /**
  204 + * static function
  205 + *
  206 + * gets the name of a unit using their id
  207 + *
  208 + * @param String
  209 + * The name
  210 + *
  211 + */
  212 + function getGroupName($id) {
  213 + global $default;
  214 + $sName = lookupField("$default->owl_groups_table", "name", "id", $id );
  215 + return $sName;
  216 + }
204 } 217 }
205 /* 218 /*
206 * static function 219 * static function