Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
75 | protected function init () { |
||
76 | if (!$this->cache) { |
||
77 | $this->cache = new Cache_prefix('sessions'); |
||
78 | $this->users_cache = new Cache_prefix('users'); |
||
79 | } |
||
80 | $this->session_id = null; |
||
81 | $this->user_id = User::GUEST_ID; |
||
82 | Event::instance()->fire('System/Session/init/before'); |
||
83 | $this->init_session(); |
||
84 | Event::instance()->fire('System/Session/init/after'); |
||
85 | } |
||
86 | } |
||
87 |