Example #1
0
 protected function attached($presenter)
 {
     parent::attached($presenter);
     $this->sort = $this->defaultSort + $this->sort;
     $this->filters = $this->defaultFilters + $this->filters;
     $this->onAttached($this);
 }
Example #2
0
 protected function attached($presenter)
 {
     parent::attached($presenter);
     $this->onAttached($this);
     if ($this->id) {
         if (!$this->repository->find($this->id)) {
             throw new BadRequestException();
         }
     }
 }
Example #3
0
 protected function attached($presenter)
 {
     parent::attached($presenter);
     $this->onAttached($this);
 }
Example #4
0
 protected function attached($presenter)
 {
     parent::attached($presenter);
     $this['table']->getTable()->setTranslator($this->presenter->context->translator->translator);
 }