ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_Yadis_PHPSession Class Reference
+ Collaboration diagram for Auth_Yadis_PHPSession:

Public Member Functions

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

Detailed Description

Definition at line 17 of file Manager.php.

Member Function Documentation

Auth_Yadis_PHPSession::contents ( )

Return the contents of the session in array form.

Definition at line 60 of file Manager.php.

References $_SESSION.

{
return $_SESSION;
}
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.

References $_SESSION, and $name.

{
unset($_SESSION[$name]);
}
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.

References $_SESSION, and $name.

{
if (array_key_exists($name, $_SESSION)) {
return $_SESSION[$name];
} else {
return $default;
}
}
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.

References $_SESSION, and $name.

{
$_SESSION[$name] = $value;
}

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