Exemple #1
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;
 }