Blame view

src/vendor/1.2.5/Phalcon/Http/Response/CookiesInterface.php 1.66 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
  <?php 
  
  namespace Phalcon\Http\Response {
  
  	/**
  	 * Phalcon\Http\Response\CookiesInterface initializer
  	 */
  	
  	interface CookiesInterface {
  
  		/**
  		 * Set if cookies in the bag must be automatically encrypted/decrypted
  		 *
  		 * @param boolean $useEncryption
  		 * @return \Phalcon\Http\Response\CookiesInterface
  		 */
  		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
  		 *
  		 * @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\CookiesInterface
  		 */
  		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
  		 *
  		 * @return boolean
  		 */
  		public function send();
  
  
  		/**
  		 * Reset set cookies
  		 *
  		 * @return \Phalcon\Http\Response\CookiesInterface
  		 */
  		public function reset();
  
  	}
  }