Blame view

src/vendor/1.2.5/Phalcon/Http/Response/Cookies.php 2.36 KB
1ea3b987   Administrator   maby first commit
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
  <?php 
  
  namespace Phalcon\Http\Response {
  
  	/**
  	 * Phalcon\Http\Response\Cookies
  	 *
  	 * This class is a bag to manage the cookies
  	 * A cookies bag is automatically registered as part of the 'response' service in the DI
  	 */
  	
  	class Cookies implements \Phalcon\Http\Response\CookiesInterface, \Phalcon\DI\InjectionAwareInterface {
  
  		protected $_dependencyInjector;
  
  		protected $_registered;
  
  		protected $_useEncryption;
  
  		protected $_cookies;
  
  		/**
  		 * Sets the dependency injector
  		 *
  		 * @param \Phalcon\DiInterface $dependencyInjector
  		 */
  		public function setDI($dependencyInjector){ }
  
  
  		/**
  		 * Returns the internal dependency injector
  		 *
  		 * @return \Phalcon\DiInterface
  		 */
  		public function getDI(){ }
  
  
  		/**
  		 * Set if cookies in the bag must be automatically encrypted/decrypted
  		 *
  		 * @param boolean $useEncryption
  		 * @return \Phalcon\Http\Response\Cookies
  		 */
  		public function useEncryption($useEncryption){ }
  
  
  		/**
  		 * Returns if the bag is automatically encrypting/decrypting cookies
  		 *
  		 * @return boolean
  		 */
  		public function isUsingEncryption(){ }
  
  
  		/**
  		 * Sets a cookie to be sent at the end of the request
  		 * This method overrides any cookie set before with the same name
  		 *
  		 * @param string $name
  		 * @param mixed $value
  		 * @param int $expire
  		 * @param string $path
  		 * @param boolean $secure
  		 * @param string $domain
  		 * @param boolean $httpOnly
  		 * @return \Phalcon\Http\Response\Cookies
  		 */
  		public function set($name, $value=null, $expire=null, $path=null, $secure=null, $domain=null, $httpOnly=null){ }
  
  
  		/**
  		 * Gets a cookie from the bag
  		 *
  		 * @param string $name
  		 * @return \Phalcon\Http\Cookie
  		 */
  		public function get($name){ }
  
  
  		/**
  		 * Check if a cookie is defined in the bag or exists in the $_COOKIE superglobal
  		 *
  		 * @param string $name
  		 * @return boolean
  		 */
  		public function has($name){ }
  
  
  		/**
  		 * Deletes a cookie by its name
  		 * This method does not removes cookies from the $_COOKIE superglobal
  		 *
  		 * @param string $name
  		 * @return boolean
  		 */
  		public function delete($name){ }
  
  
  		/**
  		 * Sends the cookies to the client
  		 * Cookies aren't sent if headers are sent in the current request
  		 *
  		 * @return boolean
  		 */
  		public function send(){ }
  
  
  		/**
  		 * Reset set cookies
  		 *
  		 * @return \Phalcon\Http\Response\Cookies
  		 */
  		public function reset(){ }
  
  	}
  }