ILIAS
Release_3_10_x_branch Revision 61812
|
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. |
Data Fields | |
$lng | |
$ilAccess | |
$checked_list | |
$subpath | |
$file | |
$params | |
$disposition = "inline" | |
$mimetype | |
$errorcode | |
$errortext |
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 43 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::checkAccess | ( | ) |
Check access rights of the requested file public.
Definition at line 159 of file class.ilWebAccessChecker.php.
References $ilLog, $ref_id, ilObject\_getAllReferences(), ilObjMediaCastAccess\_lookupPublicFiles(), ilObject\_lookupType(), ilNewsItem\_lookupVisibility(), ilObjMediaObject\getParentObjectIdForUsage(), ilObjMediaObject\lookupUsages(), and NEWS_PUBLIC.
ilWebAccessChecker::getDisposition | ( | ) |
Get the delivery mode for the file.
Definition at line 277 of file class.ilWebAccessChecker.php.
References $disposition.
Referenced by sendFile().
ilWebAccessChecker::ilWebAccessChecker | ( | ) |
Constructor public.
Definition at line 106 of file class.ilWebAccessChecker.php.
References $_SESSION, $ilAccess, $ilLog, $lng, ilObjMediaObject\getMimeType(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
ilWebAccessChecker::sendError | ( | ) |
Send an error response for the requested file public.
Definition at line 322 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 287 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 267 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$checked_list |
Definition at line 47 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$disposition = "inline" |
Definition at line 76 of file class.ilWebAccessChecker.php.
Referenced by getDisposition().
ilWebAccessChecker::$errorcode |
Definition at line 91 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$errortext |
Definition at line 99 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$file |
Definition at line 61 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$ilAccess |
Definition at line 46 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
ilWebAccessChecker::$lng |
Definition at line 45 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessChecker().
ilWebAccessChecker::$mimetype |
Definition at line 84 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$params |
Definition at line 68 of file class.ilWebAccessChecker.php.
ilWebAccessChecker::$subpath |
Definition at line 54 of file class.ilWebAccessChecker.php.