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)
58 if (!is_array(self::$values[$this->component_id])) {
65 "session_id" =>
array(
"text", $this->session_id),
66 "component_id" =>
array(
"text", $this->component_id),
67 "vkey" =>
array(
"text", $a_key)
78 public function get($a_key)
82 if (is_array(self::$values[$this->component_id]) &&
83 isset(self::$values[$this->component_id][$a_key])) {
88 "SELECT value FROM usr_sess_istorage " .
89 " WHERE session_id = " . $ilDB->quote($this->session_id,
"text") .
90 " AND component_id = " . $ilDB->quote($this->component_id,
"text") .
91 " AND vkey = " . $ilDB->quote($a_key,
"text")
93 $rec = $ilDB->fetchAssoc($set);
109 if (!is_array($a_session_id)) {
110 $q =
"DELETE FROM usr_sess_istorage WHERE session_id = " .
111 $ilDB->quote($a_session_id,
"text");
113 $q =
"DELETE FROM usr_sess_istorage WHERE " .
114 $ilDB->in(
"session_id", $a_session_id,
"",
"text");
117 $ilDB->manipulate($q);
__construct($a_component_id, $a_sess_id="")
Constructor.
static destroySession($a_session_id)
Destroy session(s).
Create styles array
The data for the language used.
Session based immediate storage.