ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Auth_Yadis_PHPSession Class Reference
+ Collaboration diagram for Auth_Yadis_PHPSession:

Public Member Functions

 set ($name, $value)
 Set a session key/value pair. More...
 
 get ($name, $default=null)
 Get a key's value from the session. More...
 
 del ($name)
 Remove a key/value pair from the session. More...
 
 contents ()
 Return the contents of the session in array form. More...
 

Detailed Description

Definition at line 17 of file Manager.php.

Member Function Documentation

◆ contents()

Auth_Yadis_PHPSession::contents ( )

Return the contents of the session in array form.

Definition at line 60 of file Manager.php.

61 {
62 return $_SESSION;
63 }
$_SESSION["AccountId"]

References $_SESSION.

◆ del()

Auth_Yadis_PHPSession::del (   $name)

Remove a key/value pair from the session.

Parameters
string$nameThe name of the key to remove.

Definition at line 52 of file Manager.php.

53 {
54 unset($_SESSION[$name]);
55 }

References $_SESSION.

◆ get()

Auth_Yadis_PHPSession::get (   $name,
  $default = null 
)

Get a key's value from the session.

Parameters
string$nameThe name of the key to retrieve.
string$defaultThe optional value to return if the key is not found in the session.
Returns
string $result The key's value in the session or $default if it isn't found.

Definition at line 38 of file Manager.php.

39 {
40 if (array_key_exists($name, $_SESSION)) {
41 return $_SESSION[$name];
42 } else {
43 return $default;
44 }
45 }

References $_SESSION.

◆ set()

Auth_Yadis_PHPSession::set (   $name,
  $value 
)

Set a session key/value pair.

Parameters
string$nameThe name of the session key to add.
string$valueThe value to add to the session.

Definition at line 24 of file Manager.php.

25 {
26 $_SESSION[$name] = $value;
27 }

References $_SESSION.


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