当前位置: 首页>>代码示例>>PHP>>正文


PHP BizSystem::getZendTemplate方法代码示例

本文整理汇总了PHP中BizSystem::getZendTemplate方法的典型用法代码示例。如果您正苦于以下问题:PHP BizSystem::getZendTemplate方法的具体用法?PHP BizSystem::getZendTemplate怎么用?PHP BizSystem::getZendTemplate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BizSystem的用法示例。


在下文中一共展示了BizSystem::getZendTemplate方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderPHP

 /**
  * Render PHP template for widget object
  *
  * @param MenuWidget $widgetObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderPHP($widgetObj, $tplFile)
 {
     $view = BizSystem::getZendTemplate();
     $view->addScriptPath(dirname($tplFile));
     $view->widget = $widgetObj->OutputAttrs();
     return $view->render($widgetObj->m_TemplateFile);
 }
开发者ID:que273,项目名称:siremis,代码行数:14,代码来源:MenuRenderer.php

示例2: renderPHP

 /**
  * Render PHP template for widget object
  *
  * @param MenuWidget $widgetObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderPHP($widgetObj, $tplFile)
 {
     $view = BizSystem::getZendTemplate();
     $view->addScriptPath(dirname($tplFile));
     $view->widget = $widgetObj->OutputAttrs();
     $smarty->assign("formname", $widgetObj->m_Name);
     $smarty->assign("module", $view->getModuleName($view->m_Name));
     $smarty->assign("title", $view->m_Title);
     $smarty->assign("errors", $view->m_Errors);
     $smarty->assign("notices", $view->m_Notices);
     return $view->render($view->m_TemplateFile);
 }
开发者ID:Why-Not-Sky,项目名称:cubi-ng,代码行数:19,代码来源:MenuRenderer.php

示例3: renderPHP

 /**
  * Render PHP template for form object
  *
  * @param EasyForm $formObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderPHP($formObj, $tplAttributes = array())
 {
     $form = BizSystem::getZendTemplate();
     $tplFile = BizSystem::getTplFileWithPath($formObj->m_TemplateFile, $formObj->m_Package);
     $form->addScriptPath(dirname($tplFile));
     /*$formOutput = $formObj->outputAttrs();
       foreach ($formOutput as $k=>$v) {
           $form->$k = $v;
       }*/
     foreach ($tplAttributes as $key => $value) {
         if ($value == NULL) {
             $form->{$key} = '';
         } else {
             $form->{$key} = $value;
         }
     }
     // render the formobj attributes
     //$form->form = $formOutput;
     return $form->render($formObj->m_TemplateFile);
 }
开发者ID:Why-Not-Sky,项目名称:cubi-ng,代码行数:27,代码来源:FormRenderer.php

示例4: renderPHP

 /**
  * Render PHP template for view object
  *
  * @param EasyForm $formObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderPHP($viewObj, $tplAttributes = array())
 {
     $view = BizSystem::getZendTemplate();
     $tplFile = BizSystem::getTplFileWithPath($viewObj->m_TemplateFile, $viewObj->m_Package);
     $view->addScriptPath(dirname($tplFile));
     //Translate Array of template variables to Zend template object
     foreach ($tplAttributes as $key => $value) {
         if ($value == NULL) {
             $view->{$key} = '';
         } else {
             $view->{$key} = $value;
         }
     }
     $tpl = $_REQUEST['partial'] ? $viewObj->m_TemplateFile : $viewObj->m_PageTemplate;
     if ($viewObj->m_ConsoleOutput) {
         echo $view->render($tpl);
     } else {
         return $view->render($tpl);
     }
 }
开发者ID:Why-Not-Sky,项目名称:cubi-ng,代码行数:27,代码来源:ViewRenderer.php

示例5: renderPHP

 /**
  * 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);
 }
开发者ID:que273,项目名称:siremis,代码行数:30,代码来源:FormRenderer.php


注:本文中的BizSystem::getZendTemplate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。