19 declare(strict_types=1);
42 int $a_trigger_obj_id,
47 switch ($a_operator) {
72 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
"default" =>
true),
74 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings")
85 $ilAccess = $DIC->access();
87 $t_arr = explode(
"_", $target);
89 if ($t_arr[0] !==
"sahs" || ((
int) $t_arr[1]) <= 0) {
93 if ($ilAccess->checkAccess(
"visible",
"", (
int) $t_arr[1]) || $ilAccess->checkAccess(
"read",
"", (
int) $t_arr[1])) {
108 $lm_dir = $lm_data_dir . DIRECTORY_SEPARATOR .
"lm_" . $a_id;
const string OPERATOR_FINISHED
static getWebspaceDir(string $mode="filesystem")
get webspace directory
static _hasUserCompleted(int $a_obj_id, int $a_user_id)
Lookup user object completion.
Interface for condition handling.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static dirsize(string $directory)
get size of a directory or a file.
const string OPERATOR_FAILED
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status.
static getConditionOperators()
Get possible conditions operaditors.
static checkCondition(int $a_trigger_obj_id, string $a_operator, string $a_value, int $a_usr_id)
check condition for a specific user and object
static _lookupDiskUsage(int $a_id)
Returns the number of bytes used on the harddisk by the learning module with the specified object id...
static _checkGoto(string $target)
check whether goto script will succeed
static _getCommands(?int $a_obj_id=null)
get commands this method returns an array of all possible commands/permission combinations example: $...
Class ilObjContentObjectAccess.
const LP_STATUS_FAILED_NUM