Пример #1
0
 /**
  * Add a single field to the form.
  *
  * @param BaseField $field
  */
 protected function _addField(BaseField $field)
 {
     $field->getFormField($this->_builder);
 }
 protected function _appendField(Field\BaseField $field, $groupName = null, $sequence = null)
 {
     if (is_array($field->getValue())) {
         foreach ($field->getValue() as $key => $value) {
             $this->_updates[] = array('field' => $field->getName(), 'data_name' => $key, 'value' => $value, 'group' => $groupName, 'sequence' => $sequence);
         }
     } else {
         $this->_updates[] = array('field' => $field->getName(), 'data_name' => null, 'value' => $field->getValue(), 'group' => $groupName, 'sequence' => $sequence);
     }
 }