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


PHP Debugger::checkSecurityKeys方法代码示例

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


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

示例1: initialize

 /**
  * Initializes AuthComponent for use in the controller
  *
  * @param object $controller A reference to the instantiating controller object
  * @return void
  * @access public
  */
 function initialize(&$controller, $settings = array())
 {
     $this->controller =& $controller;
     $this->params = $controller->params;
     $crud = array('create', 'read', 'update', 'delete');
     $this->_set($settings);
     $this->actionMap = array_merge(array_combine($crud, $crud), $this->actionMap);
     $this->_methods = $controller->methods;
     $prefixes = Router::prefixes();
     if (!empty($prefixes)) {
         foreach ($prefixes as $prefix) {
             $this->actionMap = array_merge(array($prefix . '_index' => 'read', $prefix . '_add' => 'create', $prefix . '_edit' => 'update', $prefix . '_view' => 'read', $prefix . '_remove' => 'delete', $prefix . '_create' => 'create', $prefix . '_read' => 'read', $prefix . '_update' => 'update', $prefix . '_delete' => 'delete'), $this->actionMap);
         }
     }
     if (Configure::read() > 0) {
         App::import('Debugger');
         Debugger::checkSecurityKeys();
     }
 }
开发者ID:Galvanio,项目名称:Kinspir,代码行数:26,代码来源:auth.php

示例2: initialize

 /**
  * Initializes OAuthComponent for use in the controller
  *
  * @param Controller $controller A reference to the instantiating controller object
  * @return void
  */
 public function initialize(Controller $controller)
 {
     $configureOAuth = Configure::read('oauth');
     $this->request = $controller->request;
     $this->response = $controller->response;
     $this->_methods = $controller->methods;
     $this->extendAccessClientsId = $configureOAuth['extendAccessClientsId'];
     $this->extendGrantTypes = $configureOAuth['extendGrantTypes'];
     if (Configure::read('debug') > 0) {
         Debugger::checkSecurityKeys();
     }
 }
开发者ID:pedro-lucas,项目名称:cakephp-oauth-server,代码行数:18,代码来源:OAuthComponent.php

示例3: initialize

 /**
  * Initializes AuthComponent for use in the controller.
  *
  * @param Controller $controller A reference to the instantiating controller object
  * @return void
  */
 public function initialize(Controller $controller)
 {
     $this->request = $controller->request;
     $this->response = $controller->response;
     $this->_methods = $controller->methods;
     if (Configure::read('debug') > 0) {
         Debugger::checkSecurityKeys();
     }
 }
开发者ID:noibilism,项目名称:nst_portal,代码行数:15,代码来源:AuthComponent.php

示例4: initialize

 /**
  * Initializes AuthComponent for use in the controller
  *
  * @param object $controller A reference to the instantiating controller object
  * @return void
  */
 public function initialize($controller)
 {
     $this->request = $controller->request;
     $this->params = $this->request;
     $crud = array('create', 'read', 'update', 'delete');
     $this->actionMap = array_merge($this->actionMap, array_combine($crud, $crud));
     $this->_methods = $controller->methods;
     $prefixes = Router::prefixes();
     if (!empty($prefixes)) {
         foreach ($prefixes as $prefix) {
             $this->actionMap = array_merge($this->actionMap, array($prefix . '_index' => 'read', $prefix . '_add' => 'create', $prefix . '_edit' => 'update', $prefix . '_view' => 'read', $prefix . '_remove' => 'delete', $prefix . '_create' => 'create', $prefix . '_read' => 'read', $prefix . '_update' => 'update', $prefix . '_delete' => 'delete'));
         }
     }
     if (Configure::read('debug') > 0) {
         App::import('Debugger');
         Debugger::checkSecurityKeys();
     }
 }
开发者ID:no2key,项目名称:Web-Framework-Benchmark,代码行数:24,代码来源:auth.php


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