41 $this->component_id = $a_component_id;
44 $this->session_id = $a_sess_id;
48 $this->session_id = session_id();
57 function set($a_key, $a_val)
61 if (!is_array(self::$values[$this->component_id]))
66 $ilDB->replace(
"usr_sess_istorage",
68 "session_id" => array(
"text", $this->session_id),
69 "component_id" => array(
"text", $this->component_id),
70 "vkey" => array(
"text", $a_key)
72 array(
"value" => array(
"text", $a_val))
85 if (is_array(self::$values[$this->component_id]) &&
86 isset(self::$values[$this->component_id][$a_key]))
91 $set = $ilDB->query(
"SELECT value FROM usr_sess_istorage ".
92 " WHERE session_id = ".$ilDB->quote($this->session_id,
"text").
93 " AND component_id = ".$ilDB->quote($this->component_id,
"text").
94 " AND vkey = ".$ilDB->quote($a_key,
"text")
96 $rec = $ilDB->fetchAssoc($set);
112 if(!is_array($a_session_id))
114 $q =
"DELETE FROM usr_sess_istorage WHERE session_id = ".
115 $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);