Ejemplo n.º 1
0
 private function onEditGroup()
 {
     $form = $this->getForm();
     if (false !== ($errors = $form->validate($this->module))) {
         return $errors;
     }
     # View+Join
     if (false === $this->group->saveOption(GWF_Group::VIEW_FLAGS | GWF_Group::JOIN_FLAGS, false)) {
         return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__));
     }
     if (false === $this->group->saveOption($form->getVar('view') + $form->getVar('join'), true)) {
         return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__));
     }
     return $this->module->message('msg_edit_group');
 }