Permission checker for terms.
More...
Permission checker for terms.
- 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.ilGlossaryTermPermission.php.
◆ __construct()
ilGlossaryTermPermission::__construct |
( |
| ) |
|
|
private |
◆ checkPermission()
ilGlossaryTermPermission::checkPermission |
( |
|
$a_perm, |
|
|
|
$a_term_id |
|
) |
| |
Check permission.
- Parameters
-
string | $a_perm | |
int | $a_term_id | |
- Returns
- bool
Definition at line 68 of file class.ilGlossaryTermPermission.php.
References ilObject\_getAllReferences(), and getGlossaryIdForTerm().
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];
static _getAllReferences($a_id)
get all reference ids of object
getGlossaryIdForTerm($a_term_id)
Get glossary for term.
◆ getGlossaryIdForTerm()
ilGlossaryTermPermission::getGlossaryIdForTerm |
( |
|
$a_term_id | ) |
|
|
protected |
◆ getInstance()
static ilGlossaryTermPermission::getInstance |
( |
| ) |
|
|
static |
◆ $access
ilGlossaryTermPermission::$access |
|
protected |
◆ $glossary_id
ilGlossaryTermPermission::$glossary_id = array() |
|
protected |
◆ $log
ilGlossaryTermPermission::$log |
|
protected |
◆ $permission
ilGlossaryTermPermission::$permission = array() |
|
protected |
◆ $user
ilGlossaryTermPermission::$user |
|
protected |
The documentation for this class was generated from the following file: