|
| __construct (InternalRepoService $repo, InternalDomainService $domain) |
|
| saveScreenIdsForChapter (int $chap, array $ids) |
|
| saveMappingEntry (int $chap, string $comp, string $screen_id, string $screen_sub_id, string $perm, int $module_id=0, string $full_id="") |
|
| removeScreenIdsOfChapter (int $chap, int $module_id=0) |
|
| getScreenIdsOfChapter (int $chap, int $module_id=0) |
|
| getHelpSectionsForId (string $a_screen_id, int $a_ref_id) |
|
| hasScreenIdSections (string $a_screen_id) |
| Has given screen Id any sections? Note: We removed the "ref_id" parameter here, since this method should be fast. More...
|
|
| deleteEntriesOfModule (int $id) |
|
Definition at line 26 of file MapManager.php.
◆ __construct()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::__construct |
( |
InternalRepoService |
$repo, |
|
|
InternalDomainService |
$domain |
|
) |
| |
◆ deleteEntriesOfModule()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::deleteEntriesOfModule |
( |
int |
$id | ) |
|
Definition at line 169 of file MapManager.php.
172 $this->repo->deleteEntriesOfModule(
$id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ getHelpSectionsForId()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::getHelpSectionsForId |
( |
string |
$a_screen_id, |
|
|
int |
$a_ref_id |
|
) |
| |
Definition at line 96 of file MapManager.php.
References ilObject\_lookupObjId(), ilObject\_lookupOwner(), ILIAS\Repository\access(), SYSTEM_ROLE_ID, and ILIAS\Repository\user().
100 if ($this->domain->module()->isAuthoringMode()) {
103 $module_ids = $this->domain->module()->getActiveModules();
106 foreach ($this->repo->getChaptersForScreenId($a_screen_id, $module_ids) as $rec) {
107 if ($rec[
"perm"] !=
"" && $rec[
"perm"] !=
"-") {
109 if ($rec[
"perm"] ===
"create*") {
110 $has_create_perm =
false;
114 $has_create_perm =
true;
115 } elseif ($this->rbacreview->isAssigned($this->user->getId(),
SYSTEM_ROLE_ID)) {
116 $has_create_perm =
true;
117 } elseif ($this->
access->checkAccess(
"read",
"", $a_ref_id)) {
118 $perm = $this->rbacreview->getUserPermissionsOnObject($this->
user->getId(), $a_ref_id);
119 foreach ($perm as $p) {
120 if (strpos($p,
"create_") === 0) {
121 $has_create_perm =
true;
125 if ($has_create_perm) {
126 $chaps[] = $rec[
"chap"];
128 } elseif ($this->
access->checkAccess($rec[
"perm"],
"", $a_ref_id)) {
129 $chaps[] = $rec[
"chap"];
132 $chaps[] = $rec[
"chap"];
static _lookupOwner(int $obj_id)
Lookup owner user ID for object ID.
static _lookupObjId(int $ref_id)
◆ getScreenIdsOfChapter()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::getScreenIdsOfChapter |
( |
int |
$chap, |
|
|
int |
$module_id = 0 |
|
) |
| |
Definition at line 85 of file MapManager.php.
89 return $this->repo->getScreenIdsOfChapter(
◆ hasScreenIdSections()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::hasScreenIdSections |
( |
string |
$a_screen_id | ) |
|
Has given screen Id any sections? Note: We removed the "ref_id" parameter here, since this method should be fast.
It is used to decide whether the help button should appear or not. We assume that there is at least one section for users with the "read" permission.
Definition at line 145 of file MapManager.php.
References ILIAS\Repository\settings(), and ILIAS\Repository\user().
149 if ($this->
user->getLanguage() !==
"de") {
153 if ($this->
settings->get(
"help_mode") ===
"2") {
157 if ($this->domain->module()->isAuthoringMode()) {
160 $module_ids = $this->domain->module()->getActiveModules();
163 foreach ($this->repo->getChaptersForScreenId($a_screen_id, $module_ids) as $rec) {
◆ removeScreenIdsOfChapter()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::removeScreenIdsOfChapter |
( |
int |
$chap, |
|
|
int |
$module_id = 0 |
|
) |
| |
Definition at line 75 of file MapManager.php.
79 $this->repo->removeScreenIdsOfChapter(
◆ saveMappingEntry()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::saveMappingEntry |
( |
int |
$chap, |
|
|
string |
$comp, |
|
|
string |
$screen_id, |
|
|
string |
$screen_sub_id, |
|
|
string |
$perm, |
|
|
int |
$module_id = 0 , |
|
|
string |
$full_id = "" |
|
) |
| |
◆ saveScreenIdsForChapter()
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::saveScreenIdsForChapter |
( |
int |
$chap, |
|
|
array |
$ids |
|
) |
| |
Definition at line 48 of file MapManager.php.
52 $this->repo->saveScreenIdsForChapter($chap, $ids);
◆ $access
ilAccessHandler ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::$access |
|
protected |
◆ $domain
◆ $rbacreview
ilRbacReview ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::$rbacreview |
|
protected |
◆ $repo
MapDBRepository ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::$repo |
|
protected |
◆ $settings
ilSetting ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::$settings |
|
protected |
◆ $user
ilObjUser ILIAS\GlobalScreen\Scope\MainMenu\Collector\Map\Map\MapManager::$user |
|
protected |
The documentation for this class was generated from the following file: