1 | <?php |
||
22 | class BeUserSessionService |
||
23 | { |
||
24 | /** |
||
25 | * The session key |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | const SESSION_KEY = 'sf_event_mgt'; |
||
30 | |||
31 | /** |
||
32 | * Saves the given data to the session |
||
33 | * |
||
34 | * @param array $data |
||
35 | * @return void |
||
36 | */ |
||
37 | public function saveSessionData($data) |
||
41 | |||
42 | /** |
||
43 | * Returns the session data |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function getSessionData() |
||
51 | |||
52 | /** |
||
53 | * Returns a specific value from the session data by the given key |
||
54 | * |
||
55 | * @param string $key |
||
56 | * @return mixed|null |
||
57 | */ |
||
58 | public function getSessionDataByKey($key) |
||
67 | |||
68 | /** |
||
69 | * Returns the current Backend User |
||
70 | * |
||
71 | * @return mixed|\TYPO3\CMS\Core\Authentication\BackendUserAuthentication |
||
72 | */ |
||
73 | protected function getBackendUser() |
||
77 | } |
||
78 |