当前位置: 首页>>代码示例>>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;未经允许,请勿转载。