Ejemplo n.º 1
0
 public function btnSave_Click($strFormId, $strControlId, $strParameter)
 {
     $blnRefreshGroups = !$this->mctGroup->EditMode || $this->mctGroup->Group->ParentGroupId != $this->lstParentGroup->SelectedValue;
     $this->mctGroup->SaveGroup();
     // Delegate "Save" processing to the GroupCategoryMetaControl
     if (!$this->mctGroupCategory->EditMode) {
         $this->mctGroupCategory->GroupCategory->Group = $this->mctGroup->Group;
     }
     // Now we can save the Smart Group
     $this->mctGroupCategory->SaveGroupCategory();
     if ($blnRefreshGroups) {
         Group::RefreshHierarchyDataForMinistry($this->mctGroup->Group->MinistryId);
         $this->objForm->pnlGroups_Refresh();
     }
     $this->ReturnTo('#' . $this->mctGroup->Group->Id);
 }
 /**
  * Static Helper Method to Create using QueryString arguments
  *
  * @param mixed $objParentObject QForm or QPanel which will be using this GroupCategoryMetaControl
  * @param QMetaControlCreateType $intCreateType rules governing GroupCategory object creation - defaults to CreateOrEdit
  * @return GroupCategoryMetaControl
  */
 public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit)
 {
     $intGroupId = QApplication::QueryString('intGroupId');
     return GroupCategoryMetaControl::Create($objParentObject, $intGroupId, $intCreateType);
 }