User action administration.
More...
|
static | activateAction ($a_context_comp, $a_context_id, $a_action_comp, $a_action_type, $a_active) |
| Activate action. More...
|
|
static | lookupActive ($a_context_comp, $a_context_id, $a_action_comp, $a_action_type) |
| Is activated? More...
|
|
User action administration.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 12 of file class.ilUserActionAdmin.php.
◆ activateAction()
static ilUserActionAdmin::activateAction |
( |
|
$a_context_comp, |
|
|
|
$a_context_id, |
|
|
|
$a_action_comp, |
|
|
|
$a_action_type, |
|
|
|
$a_active |
|
) |
| |
|
static |
Activate action.
- Parameters
-
string | $a_context_comp | |
string | $a_context_id | |
string | $a_action_comp | |
string | $a_action_type | |
bool | $a_active | active true/false |
Definition at line 26 of file class.ilUserActionAdmin.php.
References $a_context_id, and $DIC.
Referenced by ilUserActionAdminGUI\save().
30 $db = $DIC->database();
32 "user_action_activation",
34 "context_comp" => array(
"text", $a_context_comp),
36 "action_comp" => array(
"text", $a_action_comp),
37 "action_type" => array(
"text", $a_action_type),
40 "active" => array(
"integer", $a_active))
43 self::$loaded =
false;
◆ loadData()
static ilUserActionAdmin::loadData |
( |
| ) |
|
|
staticprotected |
Load data.
- Parameters
-
Definition at line 69 of file class.ilUserActionAdmin.php.
References $data, and $DIC.
73 $db = $DIC->database();
75 $set = $db->query(
"SELECT * FROM user_action_activation");
77 while ($rec = $db->fetchAssoc($set)) {
78 self::$data[$rec[
"context_comp"]][$rec[
"context_id"]][$rec[
"action_comp"]][$rec[
"action_type"]] = (bool) $rec[
"active"];
◆ lookupActive()
static ilUserActionAdmin::lookupActive |
( |
|
$a_context_comp, |
|
|
|
$a_context_id, |
|
|
|
$a_action_comp, |
|
|
|
$a_action_type |
|
) |
| |
|
static |
◆ $data
ilUserActionAdmin::$data = array() |
|
staticprotected |
◆ $loaded
ilUserActionAdmin::$loaded = false |
|
staticprotected |
The documentation for this class was generated from the following file: