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