コード例 #1
0
 /**
  * Render smarty template for widget object
  *
  * @param MenuWidget $widgetObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderSmarty($widgetObj, $tplFile)
 {
     $smarty = TemplateHelper::getSmartyTemplate();
     $attrs = $widgetObj->outputAttrs();
     $smarty->assign("widget", $attrs);
     $smarty->assign("form", $attrs);
     $smarty->assign("formname", $widgetObj->objectName);
     $smarty->assign("module", $widgetObj->getModuleName($widgetObj->objectName));
     $smarty->assign("title", $widgetObj->title);
     $smarty->assign("errors", isset($widgetObj->errors) ? $widgetObj->errors : null);
     $smarty->assign("notices", isset($widgetObj->notices) ? $widgetObj->notices : null);
     return $smarty->fetch($tplFile);
 }
コード例 #2
0
ファイル: MenuRenderer.php プロジェクト: Why-Not-Sky/cubi-ng
 /**
  * Render smarty template for widget object
  *
  * @param MenuWidget $widgetObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderSmarty($widgetObj, $tplFile)
 {
     $smarty = BizSystem::getSmartyTemplate();
     $attrs = $widgetObj->outputAttrs();
     $smarty->assign("widget", $attrs);
     // todo: no need
     $smarty->assign("form", $attrs);
     $smarty->assign("formname", $widgetObj->m_Name);
     $smarty->assign("module", $widgetObj->getModuleName($widgetObj->m_Name));
     $smarty->assign("title", $widgetObj->m_Title);
     $smarty->assign("errors", $widgetObj->m_Errors);
     $smarty->assign("notices", $widgetObj->m_Notices);
     return $smarty->fetch($tplFile);
 }
コード例 #3
0
ファイル: MenuRenderer.php プロジェクト: que273/siremis
 /**
  * Render smarty template for widget object
  *
  * @param MenuWidget $widgetObj
  * @param string $tplFile
  * @return string result of rendering process
  */
 protected static function renderSmarty($widgetObj, $tplFile)
 {
     $smarty = BizSystem::getSmartyTemplate();
     $smarty->assign("widget", $widgetObj->outputAttrs());
     return $smarty->fetch($tplFile);
 }