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


PHP Survey_Common_Action类代码示例

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


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

示例1: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
 {
     $this->getController()->_js_admin_includes(Yii::app()->getConfig('adminscripts') . 'assessments.js');
     $this->getController()->_js_admin_includes(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.tablesorter.min.js');
     $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css");
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:rawaludin,项目名称:LimeSurvey,代码行数:14,代码来源:assessments.php

示例2: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
 {
     App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'assessments.js');
     App()->getClientScript()->registerPackage('jquery-tablesorter');
     App()->getClientScript()->registerPackage('jquery-superfish');
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:krsandesh,项目名称:LimeSurvey,代码行数:14,代码来源:assessments.php

示例3: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
 {
     $aData['display']['menu_bars'] = false;
     foreach ((array) $aViewUrls as $sViewUrl) {
         $a_ViewUrls[] = $sViewUrl . '_view';
     }
     parent::_renderWrappedTemplate($sAction, $a_ViewUrls, $aData);
 }
开发者ID:pmaonline,项目名称:limesurvey-quickstart,代码行数:15,代码来源:participantsaction.php

示例4: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
 {
     App()->getClientScript()->registerPackage('bootstrap-multiselect');
     $aData['display']['menu_bars'] = false;
     foreach ((array) $aViewUrls as $sViewUrl) {
         $a_ViewUrls[] = $sViewUrl . '_view';
     }
     parent::_renderWrappedTemplate($sAction, $a_ViewUrls, $aData);
 }
开发者ID:jdbaltazar,项目名称:survey-office,代码行数:16,代码来源:participantsaction.php

示例5: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
 {
     App()->getClientScript()->registerPackage('bootstrap-multiselect');
     $aData['display']['menu_bars'] = false;
     // Add "_view" to urls
     array_walk($aViewUrls, function (&$url) {
         $url .= "_view";
     });
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:GuillaumeSmaha,项目名称:LimeSurvey,代码行数:17,代码来源:participantsaction.php

示例6: die

 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('superadmin', 'read')) {
         die;
     }
     if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) {
         die($this->getController()->lang->gT('This feature is only available for MySQL databases.'));
     }
 }
开发者ID:jdbaltazar,项目名称:survey-office,代码行数:10,代码来源:dumpdb.php

示例7: die

 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (Yii::app()->session['USER_RIGHT_SUPERADMIN'] != 1) {
         die;
     }
     if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) {
         die($this->getController()->lang->gT('This feature is only available for MySQL databases.'));
     }
 }
开发者ID:rawaludin,项目名称:LimeSurvey,代码行数:10,代码来源:dumpdb.php

示例8: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'saved', $aViewUrls = array(), $aData = array())
 {
     $aData['display']['menu_bars']['browse'] = gT('Browse responses');
     // browse is independent of the above
     $aData['surveyid'] = $iSurveyId = $aData['iSurveyId'];
     $surveyinfo = Survey::model()->findByPk($iSurveyId)->surveyinfo;
     $aData["surveyinfo"] = $surveyinfo;
     $aData['title_bar']['title'] = gT('Browse responses') . ': ' . $surveyinfo['surveyls_title'];
     $aData['menu']['close'] = true;
     $aData['menu']['edition'] = false;
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:19,代码来源:saved.php

示例9: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
 {
     $aData['sidebar']['state'] = "close";
     $iSurveyID = $aData['surveyid'];
     $surveyinfo = Survey::model()->findByPk($iSurveyID)->surveyinfo;
     $aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $iSurveyID . ")";
     $aData['surveybar']['savebutton']['form'] = true;
     $aData['surveybar']['closebutton']['url'] = 'admin/survey/sa/view/surveyid/' . $iSurveyID;
     $aData['gid'] = null;
     App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'assessments.js');
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:jgianpiere,项目名称:lime-survey,代码行数:19,代码来源:assessments.php

示例10: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
 {
     $aData['sidemenu']['state'] = false;
     $iSurveyID = $aData['surveyid'];
     $surveyinfo = Survey::model()->findByPk($iSurveyID)->surveyinfo;
     $aData['surveybar']['closebutton']['url'] = 'admin/survey/sa/view/surveyid/' . $iSurveyID;
     // Close button
     $aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $iSurveyID . ")";
     $aData['surveybar']['savebutton']['form'] = TRUE;
     $aData['gid'] = null;
     App()->getClientScript()->registerScriptFile(App()->getAssetManager()->publish(ADMIN_SCRIPT_PATH . 'assessments.js'));
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:joaocc,项目名称:LimeSurvey--LimeSurvey,代码行数:20,代码来源:assessments.php

示例11: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
 {
     App()->getClientScript()->registerPackage('bootstrap-multiselect');
     $aData['display']['menu_bars'] = false;
     // Add "_view" to urls
     if (is_array($aViewUrls)) {
         array_walk($aViewUrls, function (&$url) {
             $url .= "_view";
         });
     } elseif (is_string($aViewUrls)) {
         $aViewUrls .= "_view";
     } else {
         // Complete madness
         throw new \InvalidArgumentException("aViewUrls must be either string or array");
     }
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:sickpig,项目名称:LimeSurvey,代码行数:24,代码来源:participantsaction.php

示例12: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'region/country', $aViewUrls = array(), $aData = array())
 {
     $aData['display']['menu_bars']['country'] = true;
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:jdbaltazar,项目名称:survey-office,代码行数:12,代码来源:countryaction.php

示例13: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'export', $aViewUrls = array(), $aData = array())
 {
     $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css");
     $aData['display']['menu_bars']['gid_action'] = 'exportstructureGroup';
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:ryu1inaba,项目名称:LimeSurvey,代码行数:13,代码来源:export.php

示例14: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'authentication', $aViewUrls = array(), $aData = array())
 {
     App()->getClientScript()->registerPackage('panels-animation');
     $aData['display']['menu_bars'] = false;
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:jgianpiere,项目名称:lime-survey,代码行数:13,代码来源:authentication.php

示例15: _renderWrappedTemplate

 /**
  * Renders template(s) wrapped in header and footer
  *
  * @param string $sAction Current action, the folder to fetch views from
  * @param string|array $aViewUrls View url(s)
  * @param array $aData Data to be passed on. Optional.
  */
 protected function _renderWrappedTemplate($sAction = 'token', $aViewUrls = array(), $aData = array())
 {
     $aData['imageurl'] = Yii::app()->getConfig('adminimageurl');
     $aData['display']['menu_bars'] = false;
     parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
 }
开发者ID:josetorerobueno,项目名称:test_repo,代码行数:13,代码来源:tokens.php


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