ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilCookie.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11{
12 private $name = '';
13 private $value = '';
14 private $expire = 0;
15 private $path = '';
16 private $domain = '';
17 private $secure = false;
18 private $http_only = false;
19
20 public function __construct($a_name)
21 {
22 $this->setName($a_name);
23 }
24
25 public function setName($a_name)
26 {
27 $this->name = $a_name;
28 }
29
34 public function getName()
35 {
36 return $this->name;
37 }
38
44 public function setValue($a_value)
45 {
46 $this->value = $a_value;
47 }
48
49 public function getValue()
50 {
51 return $this->value;
52 }
53
54 public function setExpire($a_expire)
55 {
56 $this->expire = (int) $a_expire;
57 }
58
59 public function getExpire()
60 {
61 return $this->expire;
62 }
63
64 public function setPath($a_path)
65 {
66 $this->path = $a_path;
67 }
68
69 public function getPath()
70 {
71 return $this->path;
72 }
73
74 public function setDomain($a_domain)
75 {
76 $this->domain = $a_domain;
77 }
78
79 public function getDomain()
80 {
81 return $this->domain;
82 }
83
84 public function setSecure($a_status)
85 {
86 $this->secure = (bool) $a_status;
87 }
88
89 public function isSecure()
90 {
91 return $this->secure;
92 }
93
94 public function setHttpOnly($a_http_only)
95 {
96 $this->http_only = $a_http_only;
97 }
98
99 public function isHttpOnly()
100 {
101 return $this->http_only;
102 }
103}
An exception for terminatinating execution or to throw for unit testing.
Representation of an HTTP cookie.
setExpire($a_expire)
setDomain($a_domain)
setHttpOnly($a_http_only)
setPath($a_path)
setSecure($a_status)
getName()
Get name.
setValue($a_value)
Currently no restriction on cookie length.
setName($a_name)
__construct($a_name)