4include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
 
   45        $this->
user = $DIC->user();
 
   46        $this->lng = 
$DIC->language();
 
   47        $this->rbacsystem = 
$DIC->rbac()->system();
 
   48        $this->access = 
$DIC->access();
 
   67            array(
"permission" => 
"read", 
"cmd" => 
"view", 
"lang_var" => 
"show",
 
   69            array(
"permission" => 
"write", 
"cmd" => 
"editSettings", 
"lang_var" => 
"settings")
 
   87    public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = 
"")
 
   94        if ($a_user_id == 
"") {
 
  102                    && !
$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id)) {
 
  118        switch ($a_permission) {
 
  122                    (!
$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id))) {
 
  127                include_once(
"./Modules/Exercise/RepoObjectAssignment/classes/class.ilExcRepoObjAssignment.php");
 
  129                if (!$info->isGranted()) {
 
  130                    $ilAccess->addInfoItem(
IL_NO_OBJECT_ACCESS, implode(
" / ", $info->getNotGrantedReasons()));
 
  146        $ilAccess = 
$DIC->access();
 
  148        $t_arr = explode(
"_", $a_target);
 
  150        if ($t_arr[0] != 
"wiki" || (((
int) $t_arr[1]) <= 0) && $t_arr[1] != 
"wpage") {
 
  154        if ($t_arr[1] == 
"wpage") {
 
  155            $wpg_id = (int) $t_arr[2];
 
  156            include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  158            if ((
int) $t_arr[3] > 0) {
 
  159                $refs = array((
int) $t_arr[3]);
 
  163            foreach ($refs as $r) {
 
  164                if ($ilAccess->checkAccess(
"read", 
"", $r) ||
 
  165                    $ilAccess->checkAccess(
"visible", 
"", $r) ) {
 
  169        } elseif ($ilAccess->checkAccess(
"read", 
"", $t_arr[1]) ||
 
  170            $ilAccess->checkAccess(
"visible", 
"", $t_arr[1])) {
 
  187        $q = 
"SELECT * FROM il_wiki_data WHERE id = " .
 
  188            $ilDB->quote($a_id, 
"integer");
 
  189        $wk_set = 
$ilDB->query($q);
 
  190        $wk_rec = 
$ilDB->fetchAssoc($wk_set);
 
  192        return $wk_rec[
"is_online"];
 
  206        $q = 
"SELECT id, is_online FROM il_wiki_data WHERE " .
 
  207            $ilDB->in(
"id", $a_ids, 
false, 
"integer");
 
  211            $status[$r[
"id"]] = $r[
"is_online"];
 
  228        $q = 
"SELECT * FROM il_wiki_data WHERE id = " .
 
  229            $ilDB->quote($a_id, 
"integer");
 
  230        $wk_set = 
$ilDB->query($q);
 
  231        $wk_rec = 
$ilDB->fetchAssoc($wk_set);
 
  233        return $wk_rec[
"public_files"];
 
An exception for terminatinating execution or to throw for unit testing.
const IL_NO_OBJECT_ACCESS
static getInstance()
Get instance.
_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 _checkGoto($a_target)
check whether goto script will succeed
static _lookupOnline($a_id)
Check wether wiki cast is online.
static _lookupOnlineStatus($a_ids)
Check wether learning module is online (legacy version)
static _lookupPublicFiles($a_id)
Check wether files should be public.
__construct()
Constructor.
static _getCommands()
get commands
static _getAllReferences($a_id)
get all reference ids of object
static lookupWikiId($a_page_id)
Lookup wiki id.