Example #1
0
 /**
  * get the Value
  *
  * @access public
  * @return \stdClass
  */
 public function createView() : \stdClass
 {
     $oView = new \stdClass();
     $oView->form = $this->_sView;
     $oView->form_start = $this->_oForm->getFormInObject()->start;
     $oView->form_end = $this->_oForm->getFormInObject()->end;
     $oView->form_row = array();
     foreach ($this->_oForm->getFormInObject()->form as $sKey => $mValue) {
         if ($mValue instanceof Container) {
             $oNewForm = $mValue->createView();
             $oView->form_row[$sKey] = $oNewForm->form_row;
         } else {
             $oView->form_row[$sKey] = $mValue;
         }
     }
     return $oView;
 }