40        $this->
user = $DIC->user();
 
   41        $this->lng = 
$DIC->language();
 
   42        $this->rbacsystem = 
$DIC->rbac()->system();
 
   43        $this->access = 
$DIC->access();
 
   59    public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = 
"")
 
   66        if ($a_user_id == 
"") {
 
   70        switch ($a_permission) {
 
   73                    && !
$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id)) {
 
   81                    (!
$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id))) {
 
  107            array(
"permission" => 
"read", 
"cmd" => 
"view", 
"lang_var" => 
"show",
 
  109            array(
"permission" => 
"write", 
"cmd" => 
"edit", 
"lang_var" => 
"edit_content"),
 
  110            array(
"permission" => 
"edit_content", 
"cmd" => 
"edit", 
"lang_var" => 
"edit_content"), 
 
  111            array(
"permission" => 
"write", 
"cmd" => 
"properties", 
"lang_var" => 
"settings")
 
  130        $q = 
"SELECT * FROM glossary WHERE id = " .
 
  131            $ilDB->quote($a_id, 
"integer");
 
  149        $q = 
"SELECT id, is_online FROM glossary WHERE " .
 
  150            $ilDB->in(
"id", $a_ids, 
false, 
"integer");
 
  168        $ilAccess = 
$DIC->access();
 
  170        $t_arr = explode(
"_", $a_target);
 
  172        if (($t_arr[0] != 
"glo" && $t_arr[0] != 
"git") || ((
int) $t_arr[1]) <= 0) {
 
  176        if ($t_arr[0] == 
"glo") {
 
  177            if ($ilAccess->checkAccess(
"read", 
"", $t_arr[1]) ||
 
  178                $ilAccess->checkAccess(
"visible", 
"", $t_arr[1])) {
 
  183        if ($t_arr[0] == 
"git") {
 
  185                $ref_ids = array($t_arr[2]);
 
  192            foreach ($ref_ids as $ref_id) {
 
  194                if ($ilAccess->checkAccess(
"read", 
"", $ref_id)) {
 
An exception for terminatinating execution or to throw for unit testing.
const IL_NO_OBJECT_ACCESS
static _lookGlossaryID($term_id)
get glossary id form term id
Class ilObjGlossaryAccess.
static _getCommands()
get commands
__construct()
Constructor.
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcce...
static _lookupOnlineStatus($a_ids)
Check wether learning module is online (legacy version)
static _checkGoto($a_target)
check whether goto script will succeed
static _lookupOnline($a_id)
check wether learning module is online
static _getAllReferences($a_id)
get all reference ids of object
static yn2tf($a_yn)
convert "y"/"n" to true/false