This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
|
| static | activateAction (string $a_context_comp, string $a_context_id, string $a_action_comp, string $a_action_type, bool $a_active) |
| |
| static | lookupActive (string $a_context_comp, string $a_context_id, string $a_action_comp, string $a_action_type) |
| |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning User action administration
- Author
- Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Definition at line 23 of file class.ilUserActionAdmin.php.
◆ activateAction()
| static ilUserActionAdmin::activateAction |
( |
string |
$a_context_comp, |
|
|
string |
$a_context_id, |
|
|
string |
$a_action_comp, |
|
|
string |
$a_action_type, |
|
|
bool |
$a_active |
|
) |
| |
|
static |
Definition at line 28 of file class.ilUserActionAdmin.php.
34 : void {
36
37 $db =
$DIC->database();
38 $db->replace(
39 "user_action_activation",
40 array(
41 "context_comp" => array("text", $a_context_comp),
42 "context_id" => array("text", $a_context_id),
43 "action_comp" => array("text", $a_action_comp),
44 "action_type" => array("text", $a_action_type),
45 ),
46 array(
47 "active" => array("integer", $a_active))
48 );
49
50 self::$loaded = false;
51 }
Referenced by ilUserActionAdminGUI\save().
◆ loadData()
| static ilUserActionAdmin::loadData |
( |
| ) |
|
|
staticprotected |
Definition at line 73 of file class.ilUserActionAdmin.php.
73 : void
74 {
76
77 $db =
$DIC->database();
78
79 $set = $db->query("SELECT * FROM user_action_activation");
81 while ($rec = $db->fetchAssoc($set)) {
82 self::$data[$rec[
"context_comp"]][$rec[
"context_id"]][$rec[
"action_comp"]][$rec[
"action_type"]] = (bool) $rec[
"active"];
83 }
84
85 self::$loaded = true;
86 }
References $data, and $DIC.
◆ lookupActive()
| static ilUserActionAdmin::lookupActive |
( |
string |
$a_context_comp, |
|
|
string |
$a_context_id, |
|
|
string |
$a_action_comp, |
|
|
string |
$a_action_type |
|
) |
| |
|
static |
◆ $data
| array ilUserActionAdmin::$data = array() |
|
staticprotected |
◆ $loaded
| bool ilUserActionAdmin::$loaded = false |
|
staticprotected |
The documentation for this class was generated from the following file: