示例#1
0
 public function getTreeNodeDisplayName()
 {
     if ($this->treeNodeParentID == 0) {
         return t('All Groups');
     }
     $g = UserGroup::getByID($this->gID);
     if (is_object($g)) {
         return t($g->getGroupName());
     }
 }
示例#2
0
文件: Group.php 项目: ngreimel/kovent
 public function getTreeNodeDisplayName($format = 'html')
 {
     if ($this->treeNodeParentID == 0) {
         return t('All Groups');
     }
     $g = UserGroup::getByID($this->gID);
     if (is_object($g)) {
         $gName = $g->getGroupDisplayName(false, false);
         switch ($format) {
             case 'html':
                 return h($gName);
             case 'text':
             default:
                 return $gName;
         }
     }
 }