41        $this->component_id = $a_component_id;
 
   42        if ($a_sess_id != 
"") {
 
   43            $this->session_id = $a_sess_id;
 
   45            $this->session_id = session_id();
 
   54    public function set($a_key, $a_val)
 
   60        if (!is_array(self::$values[$this->component_id])) {
 
   67                "session_id" => array(
"text", $this->session_id),
 
   68                "component_id" => array(
"text", $this->component_id),
 
   69                "vkey" => array(
"text", $a_key)
 
   71            array(
"value" => array(
"text", $a_val))
 
   80    public function get($a_key)
 
   86        if (is_array(self::$values[$this->component_id]) &&
 
   87            isset(self::$values[$this->component_id][$a_key])) {
 
   92            "SELECT value FROM usr_sess_istorage " .
 
   93            " WHERE session_id = " . 
$ilDB->quote($this->session_id, 
"text") .
 
   94            " AND component_id = " . 
$ilDB->quote($this->component_id, 
"text") .
 
   95            " AND vkey = " . 
$ilDB->quote($a_key, 
"text")
 
   97        $rec = 
$ilDB->fetchAssoc($set);
 
  100        return $rec[
"value"];
 
  115        if (!is_array($a_session_id)) {
 
  116            $q = 
"DELETE FROM usr_sess_istorage WHERE session_id = " .
 
  117                $ilDB->quote($a_session_id, 
"text");
 
  119            $q = 
"DELETE FROM usr_sess_istorage WHERE " .
 
  120                $ilDB->in(
"session_id", $a_session_id, 
"", 
"text");
 
  123        $ilDB->manipulate($q);
 
An exception for terminatinating execution or to throw for unit testing.
Session based immediate storage.
__construct($a_component_id, $a_sess_id="")
Constructor.
static destroySession($a_session_id)
Destroy session(s).