/** * Customise the check() method. * * @param callable $callIfSuccess handler to call if function returns true. * @param callable $callIfFail handler to call if function returns true. */ public function check($callIfSuccess = null, $callIfFail = null) { if ($this->di->request->getPost('submit-abort')) { $this->redirectTo('users/id/' . $this->userUpd->getProperties()['id']); } else { return parent::check([$this, 'callbackSuccess'], [$this, 'callbackFail']); } }
/** * Customise the check() method. * * @param callable $callIfSuccess handler to call if function returns true. * @param callable $callIfFail handler to call if function returns true. */ public function check($callIfSuccess = null, $callIfFail = null) { if ($this->di->request->getPost('submit-abort')) { $this->redirectTo('question'); } else { return parent::check([$this, 'callbackSuccess'], [$this, 'callbackFail']); } }
/** * Customise the check() method. * * @param callable $callIfSuccess handler to call if function returns true. * @param callable $callIfFail handler to call if function returns true. */ public function check($callIfSuccess = null, $callIfFail = null) { if (isset($_POST['submit-abort'])) { $this->redirectTo($this->redirect . '#comments'); } else { return parent::check([$this, 'callbackSuccess'], [$this, 'callbackFail']); } }
/** * Customise the check() method. * * @param callable $callIfSuccess handler to call if function returns true. * @param callable $callIfFail handler to call if function returns true. */ public function check($callIfSuccess = null, $callIfFail = null) { if ($this->di->request->getPost('submit-abort')) { $this->di->session->set('temptag', null); // clear temptag info $this->redirectTo('tag'); } else { return parent::check([$this, 'callbackSuccess'], [$this, 'callbackFail']); } }
/** * Customise the check() method. * * @param callable $callIfSuccess handler to call if function returns true. * @param callable $callIfFail handler to call if function returns true. */ public function check($callIfSuccess = null, $callIfFail = null) { if ($this->di->request->getPost('submit-abort')) { $id = $this->di->session->get('id'); $url = $this->di->url->create('users/id/' . $id); $this->redirectTo($url); } else { return parent::check([$this, 'callbackSuccess'], [$this, 'callbackFail']); } }
/** * Customise the check() method. * * @param callable $callIfSuccess handler to call if function returns true. * @param callable $callIfFail handler to call if function returns true. */ public function check($callIfSuccess = null, $callIfFail = null) { return parent::check([$this, 'callbackSuccess'], [$this, 'callbackFail']); }