當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。