本文整理匯總了PHP中Debugger::checkSessionKey方法的典型用法代碼示例。如果您正苦於以下問題:PHP Debugger::checkSessionKey方法的具體用法?PHP Debugger::checkSessionKey怎麽用?PHP Debugger::checkSessionKey使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Debugger
的用法示例。
在下文中一共展示了Debugger::checkSessionKey方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initialize
/**
* Initializes AuthComponent for use in the controller
*
* @param object $controller A reference to the instantiating controller object
* @return void
* @access public
*/
public function initialize($controller, $settings = array())
{
$this->params = $controller->params;
$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'));
}
}
$this->_set($settings);
if (Configure::read() > 0) {
App::import('Debugger');
Debugger::checkSessionKey();
}
}
示例2: 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)
{
$this->params = $controller->params;
$crud = array('create', 'read', 'update', 'delete');
$this->actionMap = array_merge($this->actionMap, array_combine($crud, $crud));
$this->_methods = $controller->methods;
$admin = Configure::read('Routing.admin');
if (!empty($admin)) {
$this->actionMap = array_merge($this->actionMap, array($admin . '_index' => 'read', $admin . '_add' => 'create', $admin . '_edit' => 'update', $admin . '_view' => 'read', $admin . '_remove' => 'delete', $admin . '_create' => 'create', $admin . '_read' => 'read', $admin . '_update' => 'update', $admin . '_delete' => 'delete'));
}
if (Configure::read() > 0) {
App::import('Debugger');
Debugger::checkSessionKey();
}
}
示例3: initialize
/**
* Initializes AuthComponent for use in the controller
*
* @param object $controller A reference to the instantiating controller object
* @access public
*/
function initialize(&$controller)
{
$this->params = $controller->params;
$crud = array('create', 'read', 'update', 'delete');
$this->actionMap = am($this->actionMap, array_combine($crud, $crud));
$this->loginError = __('Login failed. Invalid username or password.', true);
$this->authError = __('You are not authorized to access that location.', true);
$admin = Configure::read('Routing.admin');
if (!empty($admin)) {
$this->actionMap = am($this->actionMap, array($admin . '_index' => 'read', $admin . '_add' => 'create', $admin . '_edit' => 'update', $admin . '_view' => 'read', $admin . '_remove' => 'delete', $admin . '_create' => 'create', $admin . '_read' => 'read', $admin . '_update' => 'update', $admin . '_delete' => 'delete'));
}
if (Configure::read() > 0) {
uses('debugger');
Debugger::checkSessionKey();
}
}