mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
removing reference to unused variable __bare
This commit is contained in:
parent
3b74c93582
commit
9cd7888991
2 changed files with 0 additions and 41 deletions
|
@ -48,14 +48,6 @@ class SessionComponent extends CakeSession {
|
||||||
*/
|
*/
|
||||||
var $__started = false;
|
var $__started = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to determine if request are from an Ajax request
|
|
||||||
*
|
|
||||||
* @var boolean
|
|
||||||
* @access private
|
|
||||||
*/
|
|
||||||
var $__bare = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class constructor
|
* Class constructor
|
||||||
*
|
*
|
||||||
|
@ -69,19 +61,6 @@ class SessionComponent extends CakeSession {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializes the component, gets a reference to Controller::$param['bare'].
|
|
||||||
*
|
|
||||||
* @param object $controller A reference to the controller
|
|
||||||
* @return void
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
function initialize(&$controller) {
|
|
||||||
if (isset($controller->params['bare'])) {
|
|
||||||
$this->__bare = $controller->params['bare'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Startup method.
|
* Startup method.
|
||||||
*
|
*
|
||||||
|
|
|
@ -136,26 +136,6 @@ class SessionComponentTest extends CakeTestCase {
|
||||||
$this->assertEqual($result, $expected);
|
$this->assertEqual($result, $expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* testSessionInitialize method
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function testSessionInitialize() {
|
|
||||||
$Session =& new SessionComponent();
|
|
||||||
|
|
||||||
$this->assertEqual($Session->__bare, 0);
|
|
||||||
|
|
||||||
$Session->initialize(new SessionTestController());
|
|
||||||
$this->assertEqual($Session->__bare, 0);
|
|
||||||
|
|
||||||
$sessionController =& new SessionTestController();
|
|
||||||
$sessionController->params['bare'] = 1;
|
|
||||||
$Session->initialize($sessionController);
|
|
||||||
$this->assertEqual($Session->__bare, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testSessionActivate method
|
* testSessionActivate method
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue