ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilWebAccessChecker. More...
Public Member Functions | |
__construct (GlobalHttpState $httpState, CookieFactory $cookieFactory) | |
ilWebAccessChecker constructor. More... | |
check () | |
initILIAS () | |
isChecked () | |
setChecked ($checked) | |
getPathObject () | |
setPathObject (ilWACPath $path_object) | |
getDisposition () | |
setDisposition ($disposition) | |
getOverrideMimetype () | |
setOverrideMimetype ($override_mimetype) | |
isInitialized () | |
setInitialized ($initialized) | |
isSendStatusCode () | |
setSendStatusCode ($send_status_code) | |
isRevalidateFolderTokens () | |
setRevalidateFolderTokens ($revalidate_folder_tokens) | |
getAppliedCheckingMethods () | |
setAppliedCheckingMethods (array $applied_checking_methods) | |
Static Public Member Functions | |
static | isUseSeperateLogfile () |
static | setUseSeperateLogfile ($use_seperate_logfile) |
Data Fields | |
const | DISPOSITION = 'disposition' |
const | STATUS_CODE = 'status_code' |
const | REVALIDATE = 'revalidate' |
const | CM_FILE_TOKEN = 1 |
const | CM_FOLDER_TOKEN = 2 |
const | CM_CHECKINGINSTANCE = 3 |
const | CM_SECFOLDER = 4 |
Protected Member Functions | |
sendHeader ($message) | |
checkPublicSection () | |
checkUser () | |
addAppliedCheckingMethod ($method) | |
isRequestNotFromLoginPage () | |
Protected Attributes | |
$path_object = null | |
$checked = false | |
$disposition = ilFileDelivery::DISP_INLINE | |
$override_mimetype = '' | |
$send_status_code = false | |
$initialized = false | |
$revalidate_folder_tokens = true | |
$applied_checking_methods = array() | |
Static Protected Attributes | |
static | $use_seperate_logfile = false |
Private Attributes | |
$http | |
$cookieFactory | |
ilWebAccessChecker::__construct | ( | GlobalHttpState | $httpState, |
CookieFactory | $cookieFactory | ||
) |
ilWebAccessChecker constructor.
GlobalHttpState | $httpState | |
CookieFactory | $cookieFactory |
Definition at line 82 of file class.ilWebAccessChecker.php.
References $cookieFactory, ILIAS\FileDelivery\http(), ILIAS\HTTP\GlobalHttpState\request(), and setPathObject().
|
protected |
int | $method |
Definition at line 455 of file class.ilWebAccessChecker.php.
References $DIC, ilContext\CONTEXT_WAC, ilContext\init(), and ilInitialisation\reinitILIAS().
Referenced by check().
ilWebAccessChecker::check | ( | ) |
ilWACException |
Definition at line 94 of file class.ilWebAccessChecker.php.
References addAppliedCheckingMethod(), ilWACException\CODE_NO_PATH, getPathObject(), ilWACSecurePath\hasCheckingInstanceRegistered(), ILIAS\FileDelivery\http(), initILIAS(), isRevalidateFolderTokens(), sendHeader(), and setChecked().
Referenced by ilWebAccessCheckerDelivery\handleRequest(), ilWACCheckingInstanceTest\testBasic(), and ilWACCheckingInstanceTest\testNonCheckingInstanceNoSec().
|
protected |
ilWACException |
Definition at line 222 of file class.ilWebAccessChecker.php.
References $DIC, ilWACException\ACCESS_DENIED_NO_PUB, and isRequestNotFromLoginPage().
Referenced by initILIAS().
|
protected |
Definition at line 252 of file class.ilWebAccessChecker.php.
References $DIC, ilWACException\ACCESS_DENIED_NO_LOGIN, and isRequestNotFromLoginPage().
Referenced by initILIAS().
ilWebAccessChecker::getAppliedCheckingMethods | ( | ) |
Definition at line 433 of file class.ilWebAccessChecker.php.
References $applied_checking_methods.
ilWebAccessChecker::getDisposition | ( | ) |
Definition at line 309 of file class.ilWebAccessChecker.php.
References $disposition.
Referenced by ilWebAccessCheckerDelivery\deliver(), ilWebAccessCheckerDelivery\deliverDummyImage(), and ilWebAccessCheckerDelivery\deliverDummyVideo().
ilWebAccessChecker::getOverrideMimetype | ( | ) |
Definition at line 330 of file class.ilWebAccessChecker.php.
References $override_mimetype.
ilWebAccessChecker::getPathObject | ( | ) |
Definition at line 289 of file class.ilWebAccessChecker.php.
References $path_object.
Referenced by check(), ilWebAccessCheckerDelivery\deliver(), ilWebAccessCheckerDelivery\handleAccessErrors(), and initILIAS().
ilWebAccessChecker::initILIAS | ( | ) |
Definition at line 179 of file class.ilWebAccessChecker.php.
References $GLOBALS, $response, ilWACException\ACCESS_DENIED_NO_LOGIN, checkPublicSection(), checkUser(), ilContext\CONTEXT_WAC, getPathObject(), ILIAS\FileDelivery\http(), ilContext\init(), ilInitialisation\initILIAS(), isInitialized(), and setInitialized().
Referenced by check(), and ilWebAccessCheckerDelivery\handleAccessErrors().
ilWebAccessChecker::isChecked | ( | ) |
Definition at line 268 of file class.ilWebAccessChecker.php.
References $checked.
Referenced by ilWebAccessCheckerDelivery\deliver(), and ilWebAccessCheckerDelivery\deny().
ilWebAccessChecker::isInitialized | ( | ) |
Definition at line 351 of file class.ilWebAccessChecker.php.
References $initialized.
Referenced by initILIAS().
|
protected |
Definition at line 485 of file class.ilWebAccessChecker.php.
References $_SERVER, and ilUtil\_getHttpPath().
Referenced by checkPublicSection(), and checkUser().
ilWebAccessChecker::isRevalidateFolderTokens | ( | ) |
Definition at line 391 of file class.ilWebAccessChecker.php.
References $revalidate_folder_tokens.
Referenced by check().
ilWebAccessChecker::isSendStatusCode | ( | ) |
Definition at line 370 of file class.ilWebAccessChecker.php.
References $send_status_code.
|
static |
Definition at line 412 of file class.ilWebAccessChecker.php.
|
protected |
string | $message |
Definition at line 169 of file class.ilWebAccessChecker.php.
References $message, $response, and ILIAS\FileDelivery\http().
Referenced by check().
ilWebAccessChecker::setAppliedCheckingMethods | ( | array | $applied_checking_methods | ) |
int[] | $applied_checking_methods |
Definition at line 444 of file class.ilWebAccessChecker.php.
References $applied_checking_methods.
ilWebAccessChecker::setChecked | ( | $checked | ) |
boolean | $checked |
Definition at line 279 of file class.ilWebAccessChecker.php.
References $checked.
Referenced by check().
ilWebAccessChecker::setDisposition | ( | $disposition | ) |
string | $disposition |
Definition at line 320 of file class.ilWebAccessChecker.php.
References $disposition.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
ilWebAccessChecker::setInitialized | ( | $initialized | ) |
bool | $initialized |
Definition at line 360 of file class.ilWebAccessChecker.php.
References $initialized.
Referenced by initILIAS().
ilWebAccessChecker::setOverrideMimetype | ( | $override_mimetype | ) |
string | $override_mimetype |
Definition at line 341 of file class.ilWebAccessChecker.php.
References $override_mimetype.
ilWebAccessChecker::setPathObject | ( | ilWACPath | $path_object | ) |
ilWACPath | $path_object |
Definition at line 300 of file class.ilWebAccessChecker.php.
References $path_object.
Referenced by __construct().
ilWebAccessChecker::setRevalidateFolderTokens | ( | $revalidate_folder_tokens | ) |
bool | $revalidate_folder_tokens |
Definition at line 402 of file class.ilWebAccessChecker.php.
References $revalidate_folder_tokens.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
ilWebAccessChecker::setSendStatusCode | ( | $send_status_code | ) |
bool | $send_status_code |
Definition at line 381 of file class.ilWebAccessChecker.php.
References $send_status_code.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
|
static |
bool | $use_seperate_logfile |
Definition at line 423 of file class.ilWebAccessChecker.php.
References $use_seperate_logfile.
|
protected |
Definition at line 65 of file class.ilWebAccessChecker.php.
Referenced by getAppliedCheckingMethods(), and setAppliedCheckingMethods().
|
protected |
Definition at line 37 of file class.ilWebAccessChecker.php.
Referenced by isChecked(), and setChecked().
|
private |
Definition at line 73 of file class.ilWebAccessChecker.php.
Referenced by __construct().
|
protected |
Definition at line 41 of file class.ilWebAccessChecker.php.
Referenced by getDisposition(), and setDisposition().
|
private |
Definition at line 69 of file class.ilWebAccessChecker.php.
|
protected |
Definition at line 53 of file class.ilWebAccessChecker.php.
Referenced by isInitialized(), and setInitialized().
|
protected |
Definition at line 45 of file class.ilWebAccessChecker.php.
Referenced by getOverrideMimetype(), and setOverrideMimetype().
|
protected |
Definition at line 33 of file class.ilWebAccessChecker.php.
Referenced by getPathObject(), and setPathObject().
|
protected |
Definition at line 57 of file class.ilWebAccessChecker.php.
Referenced by isRevalidateFolderTokens(), and setRevalidateFolderTokens().
|
protected |
Definition at line 49 of file class.ilWebAccessChecker.php.
Referenced by isSendStatusCode(), and setSendStatusCode().
|
staticprotected |
Definition at line 61 of file class.ilWebAccessChecker.php.
Referenced by setUseSeperateLogfile().
const ilWebAccessChecker::CM_CHECKINGINSTANCE = 3 |
Definition at line 28 of file class.ilWebAccessChecker.php.
const ilWebAccessChecker::CM_FILE_TOKEN = 1 |
Definition at line 26 of file class.ilWebAccessChecker.php.
const ilWebAccessChecker::CM_FOLDER_TOKEN = 2 |
Definition at line 27 of file class.ilWebAccessChecker.php.
const ilWebAccessChecker::CM_SECFOLDER = 4 |
Definition at line 29 of file class.ilWebAccessChecker.php.
const ilWebAccessChecker::DISPOSITION = 'disposition' |
Definition at line 23 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
const ilWebAccessChecker::REVALIDATE = 'revalidate' |
Definition at line 25 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
const ilWebAccessChecker::STATUS_CODE = 'status_code' |
Definition at line 24 of file class.ilWebAccessChecker.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest().