當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Survey_Common_Action::__construct方法代碼示例

本文整理匯總了PHP中Survey_Common_Action::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Survey_Common_Action::__construct方法的具體用法?PHP Survey_Common_Action::__construct怎麽用?PHP Survey_Common_Action::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Survey_Common_Action的用法示例。


在下文中一共展示了Survey_Common_Action::__construct方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         die;
     }
 }
開發者ID:nicbon,項目名稱:LimeSurvey,代碼行數:7,代碼來源:globalsettings.php

示例2:

 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (Yii::app()->session['USER_RIGHT_CONFIGURATOR'] != 1) {
         die;
     }
 }
開發者ID:pmaonline,項目名稱:limesurvey-quickstart,代碼行數:7,代碼來源:globalsettings.php

示例3: gT

 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         Yii::app()->session['flashmessage'] = gT('Access denied!');
         $this->getController()->redirect(App()->createUrl("/admin"));
     }
 }
開發者ID:sickpig,項目名稱:LimeSurvey,代碼行數:8,代碼來源:globalsettings.php

示例4: __construct

 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (Yii::app()->session['USER_RIGHT_CONFIGURATOR'] != 1) {
         die;
     }
     Yii::app()->loadHelper('database');
 }
開發者ID:ryu1inaba,項目名稱:LimeSurvey,代碼行數:8,代碼來源:checkintegrity.php

示例5: 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

示例6: 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

示例7: __construct

 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         Yii::app()->setFlashMessage(gT("You do not have permission to access this page."), 'error');
         $this->getController()->redirect($this->getController()->createUrl("/admin/"));
     }
     Yii::app()->loadHelper('database');
     Yii::app()->loadHelper('surveytranslator');
 }
開發者ID:mfavetti,項目名稱:LimeSurvey,代碼行數:10,代碼來源:checkintegrity.php

示例8: __construct

 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         $clang = $this->getController()->lang;
         Yii::app()->session['flashmessage'] = $clang->gT("You do not have sufficient rights to access this page.");
         $this->getController()->redirect($this->getController()->createUrl("/admin/"));
     }
     Yii::app()->loadHelper('database');
     Yii::app()->loadHelper('surveytranslator');
 }
開發者ID:josetorerobueno,項目名稱:test_repo,代碼行數:11,代碼來源:checkintegrity.php

示例9:

 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     // Load helpers
     Yii::app()->loadHelper('surveytranslator');
     // Sanitize/get globals/variables
     $_POST['quotamax'] = sanitize_int(Yii::app()->request->getPost('quotamax'));
     if (empty($_POST['autoload_url'])) {
         $_POST['autoload_url'] = 0;
     }
     if (empty($_POST['quota_limit']) || !is_numeric(Yii::app()->request->getPost('quota_limit')) || Yii::app()->request->getPost('quota_limit') < 0) {
         $_POST['quota_limit'] = 0;
     }
 }
開發者ID:joaocc,項目名稱:LimeSurvey--LimeSurvey,代碼行數:14,代碼來源:quotas.php

示例10:

 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     Yii::app()->loadHelper('surveytranslator');
 }
開發者ID:rawaludin,項目名稱:LimeSurvey,代碼行數:5,代碼來源:dataentry.php

示例11: __construct

 /**
  * Initiates the survey action, checks for superadmin permission
  *
  * @access public
  * @param CController $controller
  * @param string $id
  * @return void
  */
 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
 }
開發者ID:nicbon,項目名稱:LimeSurvey,代碼行數:12,代碼來源:surveyadmin.php


注:本文中的Survey_Common_Action::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。