Exemplo n.º 1
0
 public function getConfig(&$config)
 {
     foreach (array('method', 'action', 'enctype') as $attr) {
         $value = $this->getAttribute($attr);
         if ($value !== null) {
             $config[$attr] = $value;
         }
     }
     return parent::getConfig($config);
 }
Exemplo n.º 2
0
 public function getConfig(&$config)
 {
     if ($this->hasClass('oo-ui-panelLayout-scrollable')) {
         $config['scrollable'] = true;
     }
     if ($this->hasClass('oo-ui-panelLayout-padded')) {
         $config['padded'] = true;
     }
     if (!$this->hasClass('oo-ui-panelLayout-expanded')) {
         $config['expanded'] = false;
     }
     if ($this->hasClass('oo-ui-panelLayout-framed')) {
         $config['framed'] = true;
     }
     $config['content'] = $this->content;
     return parent::getConfig($config);
 }
Exemplo n.º 3
0
 public function getConfig(&$config)
 {
     $config['fieldWidget'] = $this->fieldWidget;
     $config['align'] = $this->align;
     if ($this->help !== '') {
         $config['help'] = $this->help->getTitle();
     }
     return parent::getConfig($config);
 }