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