|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Class ilWebAccessChecker. More...
Collaboration diagram for ilWebAccessChecker:Public Member Functions | |
| ilWebAccessChecker () | |
| Constructor @access public. More... | |
| determineUser () | |
| Determine the current user(s) More... | |
| checkAccess () | |
| Check access rights of the requested file @access public. More... | |
| checkAccessMob ($obj_id) | |
| Check access to media object. More... | |
| setDisposition ($a_disposition) | |
| Set the delivery mode for the file. More... | |
| getDisposition () | |
| Get the delivery mode for the file. More... | |
| setSendMimetype ($a_send_mimetype) | |
| Set the sending of the mime type. More... | |
| getSendMimetype () | |
| Get if mimetype should be sent for a virtual delivery. More... | |
| setCheckIp ($a_check_ip) | |
| Set the checking of the IP address if no valid session is found. More... | |
| getCheckIp () | |
| Set the checking of the IP address of no valid session is found. More... | |
| sendFile () | |
| Send the requested file as if directly delivered from the web server @access public. More... | |
| sendError () | |
| Send an error response for the requested file @access public. More... | |
| getMimeType ($default='application/octet-stream') | |
| Get the mime type of the requested file. More... | |
Data Fields | |
| $lng | |
| $ilAccess | |
| $subpath | |
| $file | |
| $params | |
| $disposition = "inline" | |
| $check_ip = false | |
| $check_users = array() | |
| $send_mimetype = true | |
| $mimetype = null | |
| $errorcode | |
| $errortext | |
Private Member Functions | |
| checkAccessLM ($obj_id, $obj_type, $page=0) | |
| check access for ILIAS learning modules (obsolete, if checking of page conditions is not activated!) More... | |
| checkAccessObject ($obj_id, $obj_type='') | |
| Check access rights for an object by its object id. More... | |
| checkAccessTestQuestion ($obj_id, $usage_id=0) | |
| Check access rights for a test question This checks also tests with random selection of questions. More... | |
| checkAccessGlossaryTerm ($obj_id, $page_id) | |
| Check access rights for glossary terms This checks also learning modules linking the term. More... | |
| checkAccessPortfolioPage ($obj_id, $page_id) | |
| Check access rights for portfolio pages. More... | |
| checkAccessBlogPage ($obj_id, $page_id) | |
| Check access rights for blog pages. More... | |
| checkAccessLearningObjectivePage ($obj_id, $page_id) | |
| checkAccessUserImage ($usr_id) | |
| Check access rights for user images. More... | |
Class ilWebAccessChecker.
Checks the access rights of a directly requested content file. Called from an alias or rewrite rule
Definition at line 56 of file class.ilWebAccessChecker.php.
| ilWebAccessChecker::checkAccess | ( | ) |
Check access rights of the requested file @access public.
Definition at line 274 of file class.ilWebAccessChecker.php.
References $ilLog, $ilUser, $path, ilInitialisation\authenticate(), checkAccessMob(), checkAccessObject(), checkAccessUserImage(), determineUser(), IL_COMP_MODULE, IL_COMP_SERVICE, ilComponent\lookupId(), and ilObjMediaObject\lookupUsages().
Here is the call graph for this function:
|
private |
Check access rights for blog pages.
| int | object id (glossary) |
| int | page id (definition) |
Definition at line 820 of file class.ilWebAccessChecker.php.
References checkAccessObject().
Here is the call graph for this function:
|
private |
Check access rights for glossary terms This checks also learning modules linking the term.
| int | object id (glossary) |
| int | page id (definition) |
Definition at line 743 of file class.ilWebAccessChecker.php.
References ilInternalLink\_getSourcesOfTarget(), ilLMObject\_lookupContObjID(), ilGlossaryDefinition\_lookupTermId(), and checkAccessObject().
Here is the call graph for this function:
|
private |
Definition at line 847 of file class.ilWebAccessChecker.php.
References ilCourseObjective\_lookupContainerIdByObjectiveId(), and checkAccessObject().
Here is the call graph for this function:
|
private |
check access for ILIAS learning modules (obsolete, if checking of page conditions is not activated!)
| int | object id |
| string | object type |
| int | page id |
Definition at line 630 of file class.ilWebAccessChecker.php.
References $lng, $ref_id, and ilObject\_getAllReferences().
Here is the call graph for this function:| ilWebAccessChecker::checkAccessMob | ( | $obj_id | ) |
Check access to media object.
return
Definition at line 452 of file class.ilWebAccessChecker.php.
References ilObjMediaObject\getParentObjectIdForUsage(), ilMediaPoolPage\lookupUsages(), and ilObjMediaObject\lookupUsages().
Referenced by checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Check access rights for an object by its object id.
| int | object id |
Definition at line 674 of file class.ilWebAccessChecker.php.
References $ilAccess, $ref_id, ilObject\_getAllReferences(), and ilObject\_lookupType().
Referenced by checkAccess(), checkAccessBlogPage(), checkAccessGlossaryTerm(), checkAccessLearningObjectivePage(), and checkAccessTestQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Check access rights for portfolio pages.
| int | object id (glossary) |
| int | page id (definition) |
Definition at line 799 of file class.ilWebAccessChecker.php.
|
private |
Check access rights for a test question This checks also tests with random selection of questions.
| int | object id (question pool or test) |
| int | usage id (not yet used) |
Definition at line 706 of file class.ilWebAccessChecker.php.
References $ilAccess, $tests, ilObjTestAccess\_getRandomTestsForQuestionPool(), ilObject\_lookupType(), and checkAccessObject().
Here is the call graph for this function:
|
private |
Check access rights for user images.
Due to privacy this will be checked for a truly identified user (IP based checking is not recommended user images)
| int | usr_id |
Definition at line 864 of file class.ilWebAccessChecker.php.
References $ilSetting, $ilUser, and ilObjUser\_lookupPref().
Referenced by checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebAccessChecker::determineUser | ( | ) |
Determine the current user(s)
Definition at line 213 of file class.ilWebAccessChecker.php.
References $_SESSION, $GLOBALS, $ilUser, ilSession\_getUsersWithIp(), and getCheckIp().
Referenced by checkAccess().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebAccessChecker::getCheckIp | ( | ) |
Set the checking of the IP address of no valid session is found.
Definition at line 987 of file class.ilWebAccessChecker.php.
References $check_ip.
Referenced by determineUser().
Here is the caller graph for this function:| ilWebAccessChecker::getDisposition | ( | ) |
Get the delivery mode for the file.
Definition at line 927 of file class.ilWebAccessChecker.php.
References $disposition.
Referenced by sendFile().
Here is the caller graph for this function:| ilWebAccessChecker::getMimeType | ( | $default = 'application/octet-stream' | ) |
Get the mime type of the requested file.
| string | default type |
Definition at line 1181 of file class.ilWebAccessChecker.php.
References $mimetype, and ilMimeTypeUtil\getMimeType().
Referenced by sendFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebAccessChecker::getSendMimetype | ( | ) |
Get if mimetype should be sent for a virtual delivery.
Definition at line 960 of file class.ilWebAccessChecker.php.
References $send_mimetype.
Referenced by sendFile().
Here is the caller graph for this function:| ilWebAccessChecker::ilWebAccessChecker | ( | ) |
Constructor @access public.
Definition at line 144 of file class.ilWebAccessChecker.php.
References $_GET, $ilAccess, $ilLog, $ilUser, $lng, ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, setCheckIp(), setDisposition(), and setSendMimetype().
Here is the call graph for this function:| ilWebAccessChecker::sendError | ( | ) |
Send an error response for the requested file @access public.
Definition at line 1117 of file class.ilWebAccessChecker.php.
References $ilSetting, $ilUser, $lng, $nd, $tpl, $txt, and exit.
| ilWebAccessChecker::sendFile | ( | ) |
Send the requested file as if directly delivered from the web server @access public.
Definition at line 997 of file class.ilWebAccessChecker.php.
References ilUtil\deliverFile(), exit, getDisposition(), getMimeType(), getSendMimetype(), ilUtil\rangeDownload(), and ilUtil\readFile().
Here is the call graph for this function:| ilWebAccessChecker::setCheckIp | ( | $a_check_ip | ) |
Set the checking of the IP address if no valid session is found.
| boolean | @access public |
Definition at line 971 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
Here is the caller graph for this function:| ilWebAccessChecker::setDisposition | ( | $a_disposition | ) |
Set the delivery mode for the file.
| string | "inline", "attachment" or "virtual" @access public |
Definition at line 910 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
Here is the caller graph for this function:| ilWebAccessChecker::setSendMimetype | ( | $a_send_mimetype | ) |
Set the sending of the mime type.
| string | (boolean switch or mimetype) @access public |
Definition at line 937 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
Here is the caller graph for this function:| ilWebAccessChecker::$check_ip = false |
Definition at line 95 of file class.ilWebAccessChecker.php.
Referenced by getCheckIp().
| ilWebAccessChecker::$check_users = array() |
Definition at line 105 of file class.ilWebAccessChecker.php.
| ilWebAccessChecker::$disposition = "inline" |
Definition at line 88 of file class.ilWebAccessChecker.php.
Referenced by getDisposition().
| ilWebAccessChecker::$errorcode |
Definition at line 129 of file class.ilWebAccessChecker.php.
| ilWebAccessChecker::$errortext |
Definition at line 137 of file class.ilWebAccessChecker.php.
| ilWebAccessChecker::$file |
Definition at line 73 of file class.ilWebAccessChecker.php.
| ilWebAccessChecker::$ilAccess |
Definition at line 59 of file class.ilWebAccessChecker.php.
Referenced by checkAccessObject(), checkAccessTestQuestion(), and ilWebAccessChecker().
| ilWebAccessChecker::$lng |
Definition at line 58 of file class.ilWebAccessChecker.php.
Referenced by checkAccessLM(), ilWebAccessChecker(), and sendError().
| ilWebAccessChecker::$mimetype = null |
Definition at line 121 of file class.ilWebAccessChecker.php.
Referenced by getMimeType().
| ilWebAccessChecker::$params |
Definition at line 80 of file class.ilWebAccessChecker.php.
| ilWebAccessChecker::$send_mimetype = true |
Definition at line 112 of file class.ilWebAccessChecker.php.
Referenced by getSendMimetype().
| ilWebAccessChecker::$subpath |
Definition at line 66 of file class.ilWebAccessChecker.php.