15 "opened" =>
array(
"storage" =>
"session")
25 $cmd = $ilCtrl->getCmd();
38 if (
$_GET[
"user_id"] == $ilUser->getId())
46 $cur_arr = explode(
";", $cur);
47 if (!in_array((
int) $_GET[
"tab_nr"], $cur_arr))
49 $cur_arr[] = (int) $_GET[
"tab_nr"];
51 $this->
storeProperty($_GET[
"accordion_id"], (
int) $_GET[
"user_id"],
52 "opened", implode($cur_arr,
";"));
56 $cur = $this->
getProperty($_GET[
"accordion_id"], (
int) $_GET[
"user_id"],
58 $cur_arr = explode(
";", $cur);
59 if(($key = array_search((
int) $_GET[
"tab_nr"], $cur_arr)) !==
false) {
60 unset($cur_arr[$key]);
62 $this->
storeProperty($_GET[
"accordion_id"], (
int) $_GET[
"user_id"],
63 "opened", implode($cur_arr,
";"));
67 $this->
storeProperty($_GET[
"accordion_id"], (
int) $_GET[
"user_id"],
73 $this->
storeProperty($_GET[
"accordion_id"], (
int) $_GET[
"user_id"],
74 "opened", $_GET[
"tab_nr"]);
88 switch ($this->
properties[$a_property][
"storage"])
91 $_SESSION[
"accordion"][$a_table_id][$a_user_id][$a_property]
115 switch ($this->
properties[$a_property][
"storage"])
118 $r =
$_SESSION[
"accordion"][$a_table_id][$a_user_id][$a_property];
& executeCommand()
execute command
getProperty($a_table_id, $a_user_id, $a_property)
Get property in session or db.
setOpenedTab()
Show Filter.
storeProperty($a_table_id, $a_user_id, $a_property, $a_value)
Store property in session or db.
Create styles array
The data for the language used.
Saves (mostly asynchronously) user properties of accordions.