コード例 #1
0
 /**
  * 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']);
     }
 }
コード例 #2
0
 /**
  * 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']);
     }
 }
コード例 #3
0
 /**
  * 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']);
     }
 }
コード例 #4
0
 /**
  * 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']);
     }
 }
コード例 #5
0
 /**
  * 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']);
     }
 }
コード例 #6
0
ファイル: CFormQuestionAdd.php プロジェクト: stjo15/myDrone
 /**
  * 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']);
 }