Exemplo n.º 1
0
 protected function attached($obj)
 {
     parent::attached($obj);
     if ($obj instanceof FormBuilder) {
         $this->onAttached($obj);
     }
 }
Exemplo n.º 2
0
 protected function attached($obj)
 {
     parent::attached($obj);
     if ($obj instanceof FilterComponent) {
         /** @var Form $cmp */
         foreach ($this->getComponents() as $cmp) {
             if ($this->isAjax()) {
                 $cmp->getElementPrototype()->appendAttribute('class', 'ajax');
             }
             $cmp->onSuccess[] = [$obj, 'successForm'];
             $cmp->setDefaults($obj->getFilterValues());
         }
     }
 }
Exemplo n.º 3
0
 public function attached($niceUrl)
 {
     parent::attached($niceUrl);
     $this->prefix = $this->lookupPath('Zax\\Application\\Routers\\NiceUrl\\NiceUrl');
 }