-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSessionInterface.php
More file actions
82 lines (76 loc) · 1.93 KB
/
SessionInterface.php
File metadata and controls
82 lines (76 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* File defining \Backend\Interfaces\SessionInterface
*
* PHP Version 5.3
*
* @category Backend
* @package Interfaces
* @author J Jurgens du Toit <jrgns@backend-php.net>
* @copyright 2011 - 2012 Jade IT (cc)
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://backend-php.net
*/
namespace Backend\Interfaces;
/**
* Interface for classes that do Session management.
*
* @category Backend
* @package Modules
* @author J Jurgens du Toit <jrgns@backend-php.net>
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://backend-php.net
*/
interface SessionInterface extends \Iterator
{
/**
* Get a session value.
*
* @param string $name The name of the value to get.
*
* @return mixed The value.
*/
public function get($name);
/**
* Set a session value.
*
* @param string $name The name of the value to set.
* @param mixed $value The value to set.
*
* @return \Backend\Modules\Session
*/
public function set($name, $value);
/**
* Remove a session value.
*
* @param string $name The name of the value to remove.
*
* @return \Backend\Modules\Session
*/
public function remove($name);
/**
* Magic function to get a session value.
*
* @param string $name The name of the value to get.
*
* @return mixed The value.
*/
public function __get($name);
/**
* Magic function to set a session value.
*
* @param string $name The name of the value to set.
* @param mixed $value The value to set.
*
* @return \Backend\Modules\Session
*/
public function __set($name, $value);
/**
* Close the session.
*
* This will destroy the session and it's associated data.
*
* @return \Backend\Modules\Session
*/
public function close();
}