ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilWACCookie Class Reference

Class ilWACCookie. More...

+ Inheritance diagram for ilWACCookie:
+ Collaboration diagram for ilWACCookie:

Public Member Functions

 set ($name, $value="", $expire=0, $path="", $domain="", $secure=false, $httponly=false)
 
 get ($name)
 
 exists ($name)
 
 getAll ()
 

Detailed Description

Class ilWACCookie.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 9 of file class.ilWACCookie.php.

Member Function Documentation

◆ exists()

ilWACCookie::exists (   $name)
Parameters
$name
Returns
bool

Implements ilWACCookieInterface.

Definition at line 39 of file class.ilWACCookie.php.

References $_COOKIE.

39  {
40  return isset($_COOKIE[$name]);
41  }
$_COOKIE["ilClientId"]
Definition: cron.php:11

◆ get()

ilWACCookie::get (   $name)
Parameters
$name
Returns
mixed

Implements ilWACCookieInterface.

Definition at line 30 of file class.ilWACCookie.php.

References $_COOKIE.

30  {
31  return $_COOKIE[$name];
32  }
$_COOKIE["ilClientId"]
Definition: cron.php:11

◆ getAll()

ilWACCookie::getAll ( )
Returns
array

Implements ilWACCookieInterface.

Definition at line 47 of file class.ilWACCookie.php.

References $_COOKIE.

47  {
48  return $_COOKIE;
49  }
$_COOKIE["ilClientId"]
Definition: cron.php:11

◆ set()

ilWACCookie::set (   $name,
  $value = "",
  $expire = 0,
  $path = "",
  $domain = "",
  $secure = false,
  $httponly = false 
)
Parameters
$name
string$value
int$expire
string$path
string$domain
bool$secure
bool$httponly
Returns
bool

Implements ilWACCookieInterface.

Definition at line 21 of file class.ilWACCookie.php.

References $path.

21  {
22  return setcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
23  }
$path
Definition: index.php:22

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