示例#1
0
 function __construct($options = null)
 {
     // Set the element decorators
     $this->_elementDecorators = array('ViewHelper', array('Description', array('tag' => 'p', 'class' => 'help-block')), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'controls')), array('Label', array('class' => 'control-label')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'control-group')));
     // Set the decorators
     $this->_decorators = array(array('BootstrapDescription', array('escape' => false)), 'BootstrapFormErrorMessages', 'FormElements', 'Form');
     // Call the constructor of the parent object
     parent::__construct($options);
     // Set the decorators
     $this->setDecorators(array(array('BootstrapDescription', array('escape' => false)), 'BootstrapFormErrorMessages', 'FormElements', 'Form'));
 }
示例#2
0
 /**
  * Get the item to insert into the database
  * 
  * @param string $type
  * 
  * @return array
  */
 public function _getItem($type = '', $flatten = true)
 {
     $formValues = $this->_form->getValues();
     $return = $formValues;
     if ($flatten) {
         $return = array();
         foreach (new RecursiveIteratorIterator(new RecursiveArrayIterator($formValues)) as $k => $v) {
             $return[$k] = $this->_checkNull($v);
         }
     }
     return $return;
 }
示例#3
0
 /**
  * Constructor
  *
  * @param array $options
  */
 function __construct($options = null)
 {
     // Call the constructor of the parent object
     parent::__construct($options);
     $this->setDecorators(array(array('JqueryDescription', array('escape' => false)), 'JqueryFormErrorMessages', 'FormElements', array('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')), 'Form'));
 }