46 $this->
user = $DIC->user();
47 $this->access = $DIC->access();
70 $this->log->debug(
"check permission " . $a_perm .
" for " . $a_term_id .
".");
72 if (!isset($this->permission[$a_perm][$glo_id])) {
73 $this->permission[$a_perm][$glo_id] =
false;
74 $this->log->debug(
"...checking references");
76 $this->log->debug(
"..." . $ref_id);
77 if ($this->permission[$a_perm][$glo_id] ==
true) {
80 if ($this->access->checkAccess($a_perm,
"", $ref_id)) {
81 $this->permission[$a_perm][$glo_id] =
true;
85 $this->log->debug(
"...return " . ((
int) $this->permission[$a_perm][$glo_id]));
86 return $this->permission[$a_perm][$glo_id];
97 if (!isset($this->glossary_id[$a_term_id])) {
98 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
101 return $this->glossary_id[$a_term_id];
static getInstance()
Get instance.
static _getAllReferences($a_id)
get all reference ids of object
checkPermission($a_perm, $a_term_id)
Check permission.
__construct()
ilGlossaryTermPermission constructor.
Permission checker for terms.
static _lookGlossaryID($term_id)
get glossary id form term id
static getLogger($a_component_id)
Get component logger.
getGlossaryIdForTerm($a_term_id)
Get glossary for term.