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]))
74 $this->permission[$a_perm][$glo_id] =
false;
75 $this->log->debug(
"...checking references");
78 $this->log->debug(
"...".$ref_id);
79 if ($this->permission[$a_perm][$glo_id] ==
true)
83 if ($this->access->checkAccess($a_perm,
"", $ref_id))
85 $this->permission[$a_perm][$glo_id] =
true;
89 $this->log->debug(
"...return ".((
int) $this->permission[$a_perm][$glo_id]));
90 return $this->permission[$a_perm][$glo_id];
101 if (!isset($this->glossary_id[$a_term_id]))
103 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
106 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.
Create styles array
The data for the language used.
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.