public function getTreeNodeDisplayName() { if ($this->treeNodeParentID == 0) { return t('All Groups'); } $g = UserGroup::getByID($this->gID); if (is_object($g)) { return t($g->getGroupName()); } }
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; } } }