/** * command for processing the submitted feedback editing form. * first it validates the submitted values. * - in case of successfull validation it saves the properties and redirects to either form presentation again, * or to the syncWithOriginal form for question * - in case of failed validation it renders the form with post values and error info to the content area again * * @access private */ private function saveCmd() { $form = $this->buildForm(); $form->setValuesByPost(); if ($form->checkInput()) { $this->feedbackOBJ->saveGenericFormProperties($form); $this->feedbackOBJ->saveSpecificFormProperties($form); $this->questionOBJ->cleanupMediaObjectUsage(); if ($this->isSyncAfterSaveRequired()) { ilUtil::sendSuccess($this->lng->txt('saved_successfully'), true); $this->ctrl->redirect($this, self::CMD_SHOW_SYNC); } ilUtil::sendSuccess($this->lng->txt('saved_successfully'), true); $this->ctrl->redirect($this, self::CMD_SHOW); } ilUtil::sendFailure($this->lng->txt('form_input_not_valid')); $this->tpl->setContent($this->ctrl->getHTML($form)); }