/** * @param CGroup $oGroup * @return bool */ public function CreateGroup($oGroup) { $bResult = false; try { if ($oGroup->Validate()) { $bResult = $this->oStorage->CreateGroup($oGroup); } } catch (CApiBaseException $oException) { $bResult = false; $this->setLastException($oException); } return $bResult; }