ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilWikiPerm Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilWikiPerm:

Static Public Member Functions

static check (string $a_perm, int $a_ref_id, string $a_cmd="")
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Permission wrapper for wikis

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilWikiPerm.php.

Member Function Documentation

◆ check()

static ilWikiPerm::check ( string  $a_perm,
int  $a_ref_id,
string  $a_cmd = "" 
)
static

Definition at line 25 of file class.ilWikiPerm.php.

29 : bool {
30 global $DIC;
31
32 $ilAccess = $DIC->access();
33 switch ($a_perm) {
34 case "edit_wiki_navigation":
35 return ($ilAccess->checkAccess("write", "", $a_ref_id)
36 || $ilAccess->checkAccess("edit_wiki_navigation", "", $a_ref_id));
37 case "delete_wiki_pages":
38 return ($ilAccess->checkAccess("write", "", $a_ref_id)
39 || $ilAccess->checkAccess("delete_wiki_pages", "", $a_ref_id));
40 case "activate_wiki_protection":
41 return ($ilAccess->checkAccess("write", "", $a_ref_id)
42 || $ilAccess->checkAccess("activate_wiki_protection", "", $a_ref_id));
43 case "wiki_html_export":
44 return ($ilAccess->checkAccess("write", "", $a_ref_id)
45 || $ilAccess->checkAccess("wiki_html_export", "", $a_ref_id));
46 }
47 return $ilAccess->checkAccess($a_perm, $a_cmd, $a_ref_id);
48 }
global $DIC
Definition: shib_login.php:26

Referenced by ilWikiPageGUI\blockWikiPage(), ilObjWikiGUI\checkPermissionBool(), ilWikiPageGUI\confirmWikiPageDeletion(), ilWikiPageGUI\deleteWikiPageConfirmationScreen(), ilWikiImportantPagesBlockGUI\getHTML(), ilWikiFunctionsBlockGUI\getLegacyContent(), and ilWikiPageGUI\unblockWikiPage().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: