Ejemplo n.º 1
0
 public function outputAttrs()
 {
     $profile = BizSystem::getUserProfile();
     $userId = $profile['Id'];
     $output = parent::outputAttrs();
     $output['queryString'] = "Id=" . $userId;
     return $output;
 }
Ejemplo n.º 2
0
 public function outputAttrs()
 {
     $output = parent::outputAttrs();
     if ($this->_directParentId && count($this->_parents) == 0) {
         $this->GetParents($this->_directParentId);
     }
     $output['parents'] = $this->_parents;
     return $output;
 }
Ejemplo n.º 3
0
 public function outputAttrs()
 {
     $result = parent::outputAttrs();
     $rec = $this->fetchData();
     $result['record'] = $rec;
     $result['record_name'] = $this->m_DataRecordName;
     return $result;
 }
Ejemplo n.º 4
0
 public function outputAttrs()
 {
     $result = parent::outputAttrs();
     $result['show_error'] = $this->m_ShowError;
     return $result;
 }
Ejemplo n.º 5
0
 public function outputAttrs()
 {
     $output = parent::outputAttrs();
     $output['show_widget'] = $this->m_ShowWidget;
     return $output;
 }
Ejemplo n.º 6
0
 public function outputAttrs()
 {
     $data = parent::outputAttrs();
     $data['config'] = $this->getConfig();
     return $data;
 }
Ejemplo n.º 7
0
 public function outputAttrs()
 {
     $output = parent::outputAttrs();
     $viewobj = $this->getViewObject();
     $forms = array();
     $viewobj->m_FormRefs->rewind();
     while ($viewobj->m_FormRefs->valid()) {
         $form = $viewobj->m_FormRefs->current();
         $forms[$form->m_Name] = $form;
         $viewobj->m_FormRefs->next();
     }
     $output['forms'] = $forms;
     $output['step'] = $viewobj->getCurrentStep();
     return $output;
 }
Ejemplo n.º 8
0
 public function outputAttrs()
 {
     $result = parent::outputAttrs();
     $result['appInfo'] = $this->getAppInfo();
     return $result;
 }
Ejemplo n.º 9
0
 /**
  * Render PHP template for form object
  *
  * @param EasyForm $formObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderPHP($formObj, $tplFile)
 {
     $view = BizSystem::getZendTemplate();
     $view->addScriptPath(dirname($tplFile));
     $view->name = $formObj->m_Name;
     $view->title = $formObj->m_Title;
     $view->errors = $formObj->m_Errors;
     $view->notices = $formObj->m_Notices;
     // if the $formobj form type is list render table, otherwise render record
     if ($formObj->m_FormType == 'LIST') {
         $recordSet = $formObj->fetchDataSet();
         $view->dataPanel = $formObj->m_DataPanel->renderTable($recordSet);
     } else {
         $record = $formObj->fetchData();
         $view->dataPanel = $formObj->m_DataPanel->renderRecord($record);
     }
     // render the formobj attributes
     $view->form = $formObj->outputAttrs();
     $view->actionPanel = $formObj->m_ActionPanel->render();
     $view->searchPanel = $formObj->m_SearchPanel->render();
     $view->navPanel = $formObj->m_NavPanel->render();
     return $view->render($formObj->m_TemplateFile);
 }
Ejemplo n.º 10
0
 public function outputAttrs()
 {
     $output = parent::outputAttrs();
     $output['dataGroup'] = $this->fetchDataGroup();
     return $output;
 }