示例#1
0
 public function attached($presenter)
 {
     parent::attached($presenter);
     if ($presenter instanceof Presenter) {
         $this->httpRequest = $presenter->context->getByType('Nette\\Http\\IRequest');
     }
 }
示例#2
0
 /**
  * @param  array
  * @return void
  */
 public function loadState(array $params)
 {
     parent::loadState($params);
     $this->getPaginator()->page = $this->page;
 }
示例#3
0
 public function attached($presenter)
 {
     parent::attached($presenter);
     $this->assetsManager->build();
 }
示例#4
0
文件: Grid.php 项目: peterzadori/movi
 public function attached($presenter)
 {
     parent::attached($presenter);
     if ($presenter instanceof Presenter) {
         // Check validity
         $this->validate();
         // Invalidate control
         if ($presenter->isAjax()) {
             $this->invalidateControl();
         }
     }
 }