Exemple #1
0
 public function back_entry($notice = null, $forn_name = null)
 {
     isset($forn_name) && ($notice['notice_form'] = $forn_name);
     isset($notice) && Model\Common::set_session_notice($notice);
     $this->session->write($this->query);
     $this->view()->forward('', 'entry');
 }
Exemple #2
0
 public function save()
 {
     isset($this->query['workflow_data_id']) || $this->back_index($this->get_notice('error', 'data_not_found'));
     $this->check_token() || $this->back_index($this->get_notice('error', 'unexpected_error_happened'));
     $this->validate_confirm();
     if (!empty($this->query['workflow_data_id'])) {
         $this->get_current();
     }
     $this->check_collision();
     $this->prepare_save();
     empty($this->request_title) && $this->set_title($this->query['workflow_save_title']);
     empty($this->request_comment) && $this->set_comment($this->query['workflow_save_comment']);
     $this->save_data($this->query, '');
     Model\Common::set_session_notice($this->get_notice('success', 'workflow_draft_saved'));
     $this->back_index();
 }