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


PHP Survey_Common_Action::_surveybar方法代码示例

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


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

示例1: displayContent

 private function displayContent($aData = false, $views = false)
 {
     // TODO : improve and move to PluginsController
     if (!$aData) {
         $aData = array();
     }
     $aData['surveyid'] = $aData['iSurveyID'] = $aData['iSurveyId'] = $this->iSurveyId;
     $aData['bSurveyActivated'] = $this->bSurveyActivated;
     $oAdminController = new AdminController('admin');
     $oCommonAction = new Survey_Common_Action($oAdminController, 'survey');
     $aData['sImageURL'] = Yii::app()->getConfig('adminimageurl');
     $aData['aResult'] = $this->aResult;
     /* Mimic 2.06 system : must fix */
     ob_start();
     header("Content-type: text/html; charset=UTF-8");
     // needed for correct UTF-8 encoding
     $assetUrl = Yii::app()->assetManager->publish(dirname(__FILE__) . '/assets');
     Yii::app()->clientScript->registerScriptFile($assetUrl . '/kcedelphi.js', CClientScript::POS_END);
     Yii::app()->clientScript->registerCssFile($assetUrl . '/kcedelphi.css');
     Yii::app()->clientScript->registerCssFile($assetUrl . '/settingsfix.css');
     $oAdminController->_getAdminHeader();
     $oAdminController->_showadminmenu($this->iSurveyId);
     if ($this->iSurveyId) {
         $oCommonAction->_surveybar($this->iSurveyId);
     }
     foreach ($views as $view) {
         Yii::setPathOfAlias("views.{$view}", dirname(__FILE__) . DIRECTORY_SEPARATOR . "views" . DIRECTORY_SEPARATOR . $view);
         $oAdminController->renderPartial("views.{$view}", $aData);
     }
     $oAdminController->_loadEndScripts();
     $oAdminController->_getAdminFooter('http://manual.limesurvey.org', gT('LimeSurvey online manual'));
     $sOutput = ob_get_contents();
     ob_clean();
     App()->getClientScript()->render($sOutput);
     echo $sOutput;
     Yii::app()->end();
 }
开发者ID:SondagesPro,项目名称:LS-AutoComment_IterativeQuestionnaire,代码行数:37,代码来源:autoCommentIterativeQuestionnaire.php


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