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)) {
233 if ($this->checkAccessObject($obj_id)) {
238 if ($obj_type ==
'qpl') {
242 foreach ($tests as $test_id) {
243 if ($this->checkAccessObject($test_id,
'tst')) {
265 if ($this->checkAccessObject($obj_id)) {
274 foreach ($sources as $src) {
275 switch ($src[
'type']) {
280 if ($this->checkAccessObject($src_obj_id,
'lm')) {
314 if ($access_handler->checkAccessOfUser($this->current_user,
"read",
"view", $obj_id,
"prtf")) {
332 return $this->checkAccessObject($obj_id);
335 if ($access_handler->checkAccessOfUser($tree, $this->current_user,
"read",
"view", $node_id,
"blog")) {
350 return $this->checkAccessObject($crs_obj_id,
'crs');
363 $object_id = $this->resolveObjectId($identification);
364 if ($object_id !==
null) {
366 $ref_id = array_shift($references);
368 return ilLink::_getLink(
$ref_id);
377 "SELECT id FROM mob_data WHERE rid = %s;",
383 return (isset(
$d->id) ? (
int)
$d->id :
null);
Class ResourceIdentification.
Class ilForumDraftHistory.
static newInstanceByDraftId(int $draft_id)
static _getSourcesOfTarget(string $a_target_type, int $a_target_id, int $a_target_inst)
get all sources of a link target
static _lookupContObjID(int $a_id)
get learning module id for lm object
static lookupUsages(int $a_id, bool $a_incl_hist=true)
Lookup usages of media object.
resourceHasBeenDeleted(ResourceIdentification $identification)
checkAccessPortfolioPage(int $obj_id, int $page_id)
Check access rights for portfolio pages.
canBeAccessedByCurrentUser(ResourceIdentification $identification)
checkAccessGlossaryTerm(int $obj_id, int $page_id)
Check access rights for glossary terms This checks also learning modules linking the term.
checkAccessBlogPage(int $obj_id)
Check access rights for blog pages.
checkAccessObject(int $obj_id, string $obj_type='')
Check access rights for an object by its object id.
checkAccessLearningObjectivePage(int $obj_id, int $page_id)
resolveObjectId(ResourceIdentification $identification)
checkAccessMobUsage(array $usage, int $oid)
checkAccessTestQuestion(int $obj_id, int $usage_id=0)
Check access rights for a test question This checks also tests with random selection of questions.
getLocationURIForResourceUsage(ResourceIdentification $identification)
static _lookupVisibility(int $a_news_id)
Lookup News Visibility.
static _getRandomTestsForQuestionPool(int $qpl_id)
Get all tests using a question pool for random selection.
static _lookupType(int $id, bool $reference=false)
static _getAllReferences(int $id)
get all reference ids for object ID
Access handler for portfolio NOTE: This file needs to stay in the classes directory,...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
lookupNodeId(int $a_obj_id)
Get node id for object id As we do not allow references in workspace this should not be ambigious.
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
if(!file_exists('../ilias.ini.php'))