private function _getDefaultValues(Kwf_Form_Container_Abstract $form)
 {
     $ret = array();
     foreach ($form->getChildren() as $i) {
         if ($i instanceof Kwf_Form_Container_Abstract) {
             $ret = array_merge($ret, $this->_getDefaultValues($i));
         } else {
             if ($i->getDefaultValue()) {
                 $ret[$i->getFieldName()] = $i->getDefaultValue();
             }
         }
     }
     return $ret;
 }
Example #2
0
 public function getChildren()
 {
     $ret = array($this->_combobox);
     $ret = array_merge($ret, parent::getChildren()->getArray());
     return $ret;
 }