public function actionManageMembers()
 {
     $group = CStaffManager::getUserGroup(CRequest::getInt("id"));
     $this->addJSInclude("_core/jquery-ui-1.8.20.custom.min.js");
     $this->addCSSInclude("_core/jUI/jquery-ui-1.8.2.custom.css");
     $this->addJSInclude("_core/dialogs/personSelector.js");
     $this->setData("group", $group);
     $this->renderView("_acl_manager/groups/manageMembers.tpl");
 }
Example #2
0
 /**
  * Группы, в которых пользователь состоит
  *
  * @return CArrayList
  */
 public function getGroups()
 {
     if (is_null($this->_groups)) {
         $this->_groups = new CArrayList();
         if (!is_null($this->getId())) {
             foreach (CActiveRecordProvider::getWithCondition(TABLE_USER_IN_GROUPS, "user_id=" . $this->getId())->getItems() as $ar) {
                 $group = CStaffManager::getUserGroup($ar->getItemValue("group_id"));
                 if (!is_null($group)) {
                     $this->_groups->add($group->getId(), $group);
                 }
             }
         }
     }
     return $this->_groups;
 }
 public function actionDelete()
 {
     $group = CStaffManager::getUserGroup(CRequest::getInt("id"));
     $group->remove();
     $this->redirect("groups.php?action=index");
 }