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