コード例 #1
0
ファイル: CheckButton.php プロジェクト: natrim/gridito
 /**
  * Handle click signal
  * @param string security token
  * @param mixed primary key
  */
 public function handleClick($token, $uniqueId = null)
 {
     parent::handleClick($token, $uniqueId);
     if ($this->getPresenter()->isAjax()) {
         $this->getGrid()->invalidateControl();
     } else {
         $this->getGrid()->redirect('this');
     }
 }
コード例 #2
0
ファイル: WindowButton.php プロジェクト: v6ak/Gridito
 /**
  * Handle click signal
  * @param string $token security token
  * @param mixed $pk primary key
  */
 public function handleClick($token, $pk = null)
 {
     ob_start();
     parent::handleClick($token, $pk);
     $output = ob_get_clean();
     if ($this->getPresenter()->isAjax()) {
         echo $output;
         $this->getPresenter()->terminate();
     } else {
         $this->getGrid()->getTemplate()->windowLabel = $this->getLabel();
         $this->getGrid()->getTemplate()->windowOutput = $output;
     }
 }