Example #1
0
 public function userGroupOptions()
 {
     $model = new Cms_Model_User_Group();
     $data = $model->fetchAll();
     $propKey = 'id';
     $propVal = 'name';
     return $this->_render($data, $propKey, $propVal);
 }
Example #2
0
 public function toUserGroupName($groupId)
 {
     $model = new Cms_Model_User_Group();
     $group = $model->find($groupId);
     $name = 'unknow';
     if (trim($group->name) != '') {
         $name = $group->name;
     }
     return $name;
 }