Elgg  Version 4.x
Public Member Functions | Public Attributes | List of all members
ElggCookie Class Reference

Public Member Functions

 __construct ($name)
 Constructor. More...
 
 __get ($name)
 Get an attribute. More...
 
 setExpiresTime ($time)
 Set the time the cookie expires. More...
 

Public Attributes

 $value = ""
 
 $expire = 0
 
 $path = "/"
 
 $domain = ""
 
 $secure = false
 
 $httpOnly = false
 

Detailed Description

Definition at line 12 of file ElggCookie.php.

Constructor & Destructor Documentation

ElggCookie::__construct (   $name)

Constructor.

Parameters
string$nameThe name of the cookie.

Definition at line 39 of file ElggCookie.php.

Member Function Documentation

ElggCookie::__get (   $name)

Get an attribute.

Parameters
string$nameAttribute name
Returns
mixed

Definition at line 49 of file ElggCookie.php.

ElggCookie::setExpiresTime (   $time)

Set the time the cookie expires.

Example: $cookie->setExpiresTime("+30 days");

Parameters
string$timeA time string appropriate for strtotime()
Returns
void

Definition at line 64 of file ElggCookie.php.

Member Data Documentation

ElggCookie::$domain = ""

Definition at line 26 of file ElggCookie.php.

ElggCookie::$expire = 0

Definition at line 20 of file ElggCookie.php.

ElggCookie::$httpOnly = false

Definition at line 32 of file ElggCookie.php.

ElggCookie::$path = "/"

Definition at line 23 of file ElggCookie.php.

ElggCookie::$secure = false

Definition at line 29 of file ElggCookie.php.

ElggCookie::$value = ""

Definition at line 17 of file ElggCookie.php.


The documentation for this class was generated from the following file: