ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilWebAccessChecker. More...
Public Member Functions | |
ilWebAccessChecker () | |
Constructor public. | |
checkAccess () | |
Check access rights of the requested file public. | |
setDisposition ($a_disposition="inline") | |
Set the delivery mode for the file. | |
getDisposition () | |
Get the delivery mode for the file. | |
sendFile () | |
Send the requested file as if directly delivered from the web server public. | |
sendError () | |
Send an error response for the requested file public. | |
getMimeType ($default= 'application/octet-stream') |
Data Fields | |
$lng | |
$ilAccess | |
$checked_list | |
$subpath | |
$file | |
$params | |
$disposition = "inline" | |
$mimetype | |
$errorcode | |
$errortext |
Private Member Functions | |
checkAccessLM ($obj_id, $obj_type, $page=0) | |
checkAccessUserImage ($usr_id) | |
Check access rights for user images. |
Class ilWebAccessChecker.
Checks the access rights of a directly requested content file. Called from a redirection script or from an include to a content page.
Definition at line 44 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::checkAccess | ( | ) |
Check access rights of the requested file public.
Definition at line 169 of file class.ilWebAccessChecker.php.
References $ilLog, $ref_id, $type, ilObject\_getAllReferences(), ilObjMediaCastAccess\_lookupPublicFiles(), ilObject\_lookupType(), ilNewsItem\_lookupVisibility(), checkAccessLM(), checkAccessUserImage(), elseif(), ilObjMediaObject\getParentObjectIdForUsage(), ilObjMediaObject\lookupUsages(), and NEWS_PUBLIC.
|
private |
Definition at line 265 of file class.ilWebAccessChecker.php.
References $ref_id, and ilObject\_getAllReferences().
Referenced by checkAccess().
|
private |
Check access rights for user images.
int | usr_id |
Definition at line 301 of file class.ilWebAccessChecker.php.
References $ilSetting, $usr_id, ilObjUser\_lookupPref(), and elseif().
Referenced by checkAccess().
ilWebAccessChecker::getDisposition | ( | ) |
Get the delivery mode for the file.
Definition at line 357 of file class.ilWebAccessChecker.php.
References $disposition.
Referenced by sendFile().
ilWebAccessChecker::getMimeType | ( | $default = 'application/octet-stream' | ) |
Definition at line 443 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
ilWebAccessChecker::ilWebAccessChecker | ( | ) |
Constructor public.
Definition at line 107 of file class.ilWebAccessChecker.php.
References $_SESSION, $ilAccess, $ilLog, $lng, getMimeType(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
ilWebAccessChecker::sendError | ( | ) |
Send an error response for the requested file public.
Definition at line 428 of file class.ilWebAccessChecker.php.
References exit.
ilWebAccessChecker::sendFile | ( | ) |
Send the requested file as if directly delivered from the web server public.
Definition at line 367 of file class.ilWebAccessChecker.php.
References ilUtil\deliverFile(), exit, getDisposition(), and ilUtil\readFile().
ilWebAccessChecker::setDisposition | ( | $a_disposition = "inline" | ) |
Set the delivery mode for the file.
string | "inline" or "attachment" public |
Definition at line 347 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$checked_list |
Definition at line 48 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$disposition = "inline" |
Definition at line 77 of file class.ilWebAccessChecker.php.
Referenced by getDisposition().
ilWebAccessChecker::$errorcode |
Definition at line 92 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$errortext |
Definition at line 100 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$file |
Definition at line 62 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$ilAccess |
Definition at line 47 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
ilWebAccessChecker::$lng |
Definition at line 46 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
ilWebAccessChecker::$mimetype |
Definition at line 85 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$params |
Definition at line 69 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$subpath |
Definition at line 55 of file class.ilWebAccessChecker.php.