40 if ($mob_id ===
null) {
47 switch ($usage[
"type"]) {
53 foreach ($usages2 as $usage2) {
62 if ($usage[
"id"] == $this->current_user) {
94 switch ($usage[
'type']) {
121 $draft_id = $usage[
'id'];
124 if (
$user_id == $oDraft->getPostAuthorId()) {
129 $history_id = $usage[
'id'];
132 if (
$user_id == $oDraft->getPostAuthorId()) {
199 string $obj_type =
'' 203 $ilAccess = $DIC->access();
211 foreach ($ref_ids as
$ref_id) {
213 if ($ilAccess->checkAccessOfUser(
$user_id,
"read",
"view", $ref_id, $obj_type, $obj_id)) {
238 if ($obj_type ==
'qpl') {
242 foreach ($tests as $test_id) {
274 foreach ($sources as $src) {
275 switch ($src[
'type']) {
314 if ($access_handler->checkAccessOfUser($this->current_user,
"read",
"view", $obj_id,
"prtf")) {
330 $node_id = $tree->lookupNodeId($obj_id);
335 if ($access_handler->checkAccessOfUser($tree, $this->current_user,
"read",
"view", $node_id,
"blog")) {
364 if ($object_id !==
null) {
366 $ref_id = array_shift($references);
368 return ilLink::_getLink(
$ref_id);
376 $r = $this->database->queryF(
377 "SELECT id FROM mob_data WHERE rid = %s;",
381 $d = $this->database->fetchObject(
$r);
383 return (isset(
$d->id) ? (
int)
$d->id :
null);
389 if ($this->database ===
null) {
390 $this->database = $DIC->database();
static _getSourcesOfTarget(string $a_target_type, int $a_target_id, int $a_target_inst)
get all sources of a link target
canBeAccessedByCurrentUser(ResourceIdentification $identification)
checkAccessMobUsage(array $usage, int $oid)
static _getAllReferences(int $id)
get all reference ids for object ID
resourceHasBeenDeleted(ResourceIdentification $identification)
checkAccessPortfolioPage(int $obj_id, int $page_id)
Check access rights for portfolio pages.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static lookupUsages(int $a_id, bool $a_incl_hist=true)
Lookup usages of media object.
checkAccessGlossaryTerm(int $obj_id, int $page_id)
Check access rights for glossary terms This checks also learning modules linking the term...
static _lookupContainerIdByObjectiveId(int $a_objective_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkAccessBlogPage(int $obj_id)
Check access rights for blog pages.
checkAccessLearningObjectivePage(int $obj_id, int $page_id)
getLocationURIForResourceUsage(ResourceIdentification $identification)
Class ilForumDraftHistory.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _getRandomTestsForQuestionPool($qpl_id)
Get all tests using a question pool for random selection.
checkAccessTestQuestion(int $obj_id, int $usage_id=0)
Check access rights for a test question This checks also tests with random selection of questions...
static _lookupVisibility(int $a_news_id)
Lookup News Visibility.
Class ResourceIdentification.
Access handler for portfolio NOTE: This file needs to stay in the classes directory, WAC will be confused otherwise.
static _lookupContObjID(int $a_id)
get learning module id for lm object
static newInstanceByDraftId(int $draft_id)
static _lookupType(int $id, bool $reference=false)
checkAccessObject(int $obj_id, string $obj_type='')
Check access rights for an object by its object id.
resolveObjectId(ResourceIdentification $identification)