Exemple #1
0
 public function saveState(array &$params, $reflection = NULL)
 {
     $this->page = $this->paginator->getPage();
     parent::saveState($params, $reflection);
 }
Exemple #2
0
 protected function attached($control)
 {
     parent::attached($control);
     $this->active = $this->getParameter('active');
 }
Exemple #3
0
 public function __construct(Nextras\Orm\Repository\IRepository $repository, Ytnuk\Orm\Form\Factory $form)
 {
     parent::__construct();
     $this->repository = $repository;
     $this->form = $form;
 }
Exemple #4
0
 public function setCacheStorage(Nette\Caching\IStorage $storage)
 {
     parent::setCacheStorage($storage);
     $this->storage = $storage;
 }
Exemple #5
0
 public function __construct(Category\Control\Factory $categoryControl, Post\Control\Factory $postControl)
 {
     parent::__construct();
     $this->categoryControl = $categoryControl;
     $this->postControl = $postControl;
 }
Exemple #6
0
 public function setRelated(self $control, string $view)
 {
     $this->related[$this->view][substr($control->getUniqueId(), strlen($this->getUniqueId()) + 1)][$view] = $control->getSnippetId();
 }