30 $db = $DIC->database();
31 $db->replace(
"user_action_activation",
33 "context_comp" =>
array(
"text", $a_context_comp),
35 "action_comp" =>
array(
"text", $a_action_comp),
36 "action_type" =>
array(
"text", $a_action_type),
39 "active" =>
array(
"integer", $a_active))
42 self::$loaded =
false;
73 $db = $DIC->database();
75 $set = $db->query(
"SELECT * FROM user_action_activation");
77 while ($rec = $db->fetchAssoc($set))
79 self::$data[$rec[
"context_comp"]][$rec[
"context_id"]][$rec[
"action_comp"]][$rec[
"action_type"]] = (bool) $rec[
"active"];
static lookupActive($a_context_comp, $a_context_id, $a_action_comp, $a_action_type)
Is activated?
User action administration.
static loadData()
Load data.
Create styles array
The data for the language used.
static activateAction($a_context_comp, $a_context_id, $a_action_comp, $a_action_type, $a_active)
Activate action.