Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
ElggCookie.php
Go to the documentation of this file.
1
<?php
14
class
ElggCookie
{
16
private
$name;
17
19
public
$value
=
""
;
20
22
public
$expire
= 0;
23
25
public
$path
=
"/"
;
26
28
public
$domain
=
""
;
29
31
public
$secure
=
false
;
32
34
public
$httpOnly
=
false
;
35
41
public
function
__construct
($name) {
42
$this->
name
= $name;
43
}
44
51
public
function
__get
($name) {
52
// allow reading the private name attribute
53
if
($name ===
'name'
) {
54
return
$this->name;
55
}
56
}
57
66
public
function
setExpiresTime
($time) {
67
$this->expire = strtotime($time);
68
}
69
}
ElggCookie\$expire
$expire
Definition:
ElggCookie.php:22
ElggCookie\$domain
$domain
Definition:
ElggCookie.php:28
ElggCookie
Definition:
ElggCookie.php:14
ElggCookie\$path
$path
Definition:
ElggCookie.php:25
ElggCookie\$value
$value
Definition:
ElggCookie.php:19
ElggCookie\$httpOnly
$httpOnly
Definition:
ElggCookie.php:34
ElggCookie\__construct
__construct($name)
Constructor.
Definition:
ElggCookie.php:41
name
$site name
Definition:
update_basic.php:22
ElggCookie\__get
__get($name)
Get an attribute.
Definition:
ElggCookie.php:51
ElggCookie\setExpiresTime
setExpiresTime($time)
Set the time the cookie expires.
Definition:
ElggCookie.php:66
ElggCookie\$secure
$secure
Definition:
ElggCookie.php:31
Generated on Thu Oct 31 2024 00:04:41 for Elgg by
1.8.11