31 $this->ctrl = $DIC->ctrl();
32 $this->
user = $DIC->user();
43 if (in_array($cmd, array(
"store"))) {
55 switch (
$_GET[
"act"]) {
58 self::storeProperty(
$_GET[
"cont_block_id"], (
int)
$ilUser->getId(),
"opened",
"1");
62 self::storeProperty(
$_GET[
"cont_block_id"], (
int)
$ilUser->getId(),
"opened",
"0");
75 public static function storeProperty($a_block_id, $a_user_id, $a_property, $a_value)
77 $_SESSION[
"cont_block"][$a_block_id][$a_user_id][$a_property] = $a_value;
79 ->debug(
"block id: " . $a_block_id .
", user id: " . $a_user_id .
", property: " . $a_property .
", val: " . print_r($a_value,
true));
90 public static function getProperty($a_block_id, $a_user_id, $a_property)
93 if (isset(
$_SESSION[
"cont_block"][$a_block_id][$a_user_id][$a_property])) {
94 $val =
$_SESSION[
"cont_block"][$a_block_id][$a_user_id][$a_property];
97 ->debug(
"block id: " . $a_block_id .
", user id: " . $a_user_id .
", property: " . $a_property .
", val: " . print_r($val,
true));
static getProperty($a_block_id, $a_user_id, $a_property)
Get property in session or db.
Save container block property.
static storeProperty($a_block_id, $a_user_id, $a_property, $a_value)
Store property in session or db.
& executeCommand()
execute command
static getLogger($a_component_id)
Get component logger.
__construct()
Constructor.