|
| | __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) |
| |
| | 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()
◆ deleteEntriesOfModule()
| ILIAS\Help\Map\MapManager::deleteEntriesOfModule |
( |
int |
$id | ) |
|
Definition at line 167 of file MapManager.php.
170 $this->repo->deleteEntriesOfModule(
$id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ getHelpSectionsForId()
| ILIAS\Help\Map\MapManager::getHelpSectionsForId |
( |
string |
$a_screen_id, |
|
|
int |
$a_ref_id |
|
) |
| |
Definition at line 94 of file MapManager.php.
References ilObject\_lookupObjId(), ilObject\_lookupOwner(), ILIAS\Repository\access(), SYSTEM_ROLE_ID, and ILIAS\Repository\user().
98 if ($this->domain->module()->isAuthoringMode()) {
101 $module_ids = $this->domain->module()->getActiveModules();
104 foreach ($this->repo->getChaptersForScreenId($a_screen_id, $module_ids) as $rec) {
105 if ($rec[
"perm"] !=
"" && $rec[
"perm"] !=
"-") {
107 if ($rec[
"perm"] ===
"create*") {
108 $has_create_perm =
false;
112 $has_create_perm =
true;
113 } elseif ($this->rbacreview->isAssigned($this->user->getId(),
SYSTEM_ROLE_ID)) {
114 $has_create_perm =
true;
115 } elseif ($this->
access->checkAccess(
"read",
"", $a_ref_id)) {
116 $perm = $this->rbacreview->getUserPermissionsOnObject($this->
user->getId(), $a_ref_id);
117 foreach ($perm as $p) {
118 if (strpos($p,
"create_") === 0) {
119 $has_create_perm =
true;
123 if ($has_create_perm) {
124 $chaps[] = $rec[
"chap"];
126 } elseif ($this->
access->checkAccess($rec[
"perm"],
"", $a_ref_id)) {
127 $chaps[] = $rec[
"chap"];
130 $chaps[] = $rec[
"chap"];
static _lookupOwner(int $obj_id)
Lookup owner user ID for object ID.
static _lookupObjId(int $ref_id)
◆ getScreenIdsOfChapter()
| ILIAS\Help\Map\MapManager::getScreenIdsOfChapter |
( |
int |
$chap, |
|
|
int |
$module_id = 0 |
|
) |
| |
Definition at line 83 of file MapManager.php.
87 return $this->repo->getScreenIdsOfChapter(
◆ hasScreenIdSections()
| ILIAS\Help\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 143 of file MapManager.php.
References ILIAS\Repository\settings(), and ILIAS\Repository\user().
147 if ($this->
user->getLanguage() !==
"de") {
151 if ($this->
settings->get(
"help_mode") ===
"2") {
155 if ($this->domain->module()->isAuthoringMode()) {
158 $module_ids = $this->domain->module()->getActiveModules();
161 foreach ($this->repo->getChaptersForScreenId($a_screen_id, $module_ids) as $rec) {
◆ removeScreenIdsOfChapter()
| ILIAS\Help\Map\MapManager::removeScreenIdsOfChapter |
( |
int |
$chap, |
|
|
int |
$module_id = 0 |
|
) |
| |
Definition at line 73 of file MapManager.php.
77 $this->repo->removeScreenIdsOfChapter(
◆ saveMappingEntry()
| ILIAS\Help\Map\MapManager::saveMappingEntry |
( |
int |
$chap, |
|
|
string |
$comp, |
|
|
string |
$screen_id, |
|
|
string |
$screen_sub_id, |
|
|
string |
$perm, |
|
|
int |
$module_id = 0 |
|
) |
| |
◆ saveScreenIdsForChapter()
| ILIAS\Help\Map\MapManager::saveScreenIdsForChapter |
( |
int |
$chap, |
|
|
array |
$ids |
|
) |
| |
Definition at line 48 of file MapManager.php.
52 $this->repo->saveScreenIdsForChapter($chap, $ids);
◆ $access
◆ $domain
◆ $rbacreview
◆ $repo
◆ $settings
| ilSetting ILIAS\Help\Map\MapManager::$settings |
|
protected |
◆ $user
The documentation for this class was generated from the following file: