/** * (non-PHPdoc) * @see \Simplify\Form\Action::onExecute() */ public function onExecute() { parent::onExecute(); $this->onLoadData(); if (\Simplify::request()->method(\Simplify\Request::POST)) { $this->onPostData(); $this->onValidate(); $this->onSave(); return \Simplify\Form::RESULT_SUCCESS; } }
/** * (non-PHPdoc) * * @see Form_Action::onExecute() */ public function onExecute() { parent::onExecute(); $this->onLoadData(); $this->onValidate(); foreach ($this->formData as $row) { $this->form->dispatch(\Simplify\Form::ON_BEFORE_DELETE, $this, $row); } if (\Simplify::request()->method(\Simplify\Request::POST) && \Simplify::request()->post('deleteAction') == 'confirm') { $this->onDelete(); return \Simplify\Form::RESULT_SUCCESS; } }
/** * (non-PHPdoc) * * @see Simplify\Form\Action::onExecute() */ public function onExecute() { parent::onExecute(); $calendarAction = \Simplify::request()->get('calendarAction'); switch ($calendarAction) { case 'data': $this->onLoadData(); \Simplify::response()->output($this); exit; case 'create': case 'edit': $this->onLoadData(); if (\Simplify::request()->method('post')) { $this->onPostData(); $this->onValidate(); $this->onSave(); } break; case 'delete': $this->onLoadData(); $this->onValidate(); $this->onDelete(); } }
/** * (non-PHPdoc) * * @see Simplify\Form\Action::onExecute() */ public function onExecute() { parent::onExecute(); $this->onLoadData(); }