ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (string $path, bool $normalize=true) | |
getParameters () | |
setParameters (array $parameters) | |
getPrefix () | |
setPrefix (string $prefix) | |
getAppendix () | |
setAppendix (string $appendix) | |
getModulePath () | |
setModulePath (string $module_path) | |
getDirName () | |
getPathWithoutQuery () | |
setPathWithoutQuery (string $path_without_query) | |
isImage () | |
getSuffix () | |
setSuffix (string $suffix) | |
isStreamable () | |
isAudio () | |
isVideo () | |
fileExists () | |
hasToken () | |
hasTimestamp () | |
hasTTL () | |
getToken () | |
setToken (string $token) | |
getTimestamp () | |
setTimestamp (int $timestamp) | |
getTTL () | |
setTTL (int $ttl) | |
getClient () | |
setClient (string $client) | |
getSecurePathId () | |
setSecurePathId (string $secure_path_id) | |
getPath () | |
getCleanURLdecodedPath () | |
Returns a clean (everything behind ? is removed and rawurldecoded path. More... | |
setPath (string $path) | |
getQuery () | |
setQuery (string $query) | |
getFileName () | |
setFileName (string $file_name) | |
getOriginalRequest () | |
setOriginalRequest (string $original_request) | |
getSecurePath () | |
setSecurePath (string $secure_path) | |
isInSecFolder () | |
setInSecFolder (bool $in_sec_folder) | |
getModuleType () | |
setModuleType (string $module_type) | |
getModuleIdentifier () | |
setModuleIdentifier (string $module_identifier) | |
Static Public Member Functions | |
static | getAudioSuffixes () |
static | setAudioSuffixes (array $audio_suffixes) |
static | getImageSuffixes () |
static | setImageSuffixes (array $image_suffixes) |
static | getVideoSuffixes () |
static | setVideoSuffixes (array $video_suffixes) |
Data Fields | |
const | DIR_DATA = "data" |
const | DIR_SEC = "sec" |
const | REGEX = "(?<prefix>.*?)(?<path>(?<path_without_query>(?<secure_path_id>(?<module_path>\/data\/(?<client>[\w\-\.]*)\/(?<sec>sec\/|)(?<module_type>.*?)\/(?<module_identifier>.*\/|)))(?<appendix>[^\?\n]*)).*)" |
Copy this without to regex101.com and test with some URL of files. More... | |
Protected Member Functions | |
handleParameters () | |
normalizePath (string $path) | |
Protected Attributes | |
string | $client = '' |
array | $parameters = [] |
bool | $in_sec_folder = false |
string | $token = '' |
int | $timestamp = 0 |
int | $ttl = 0 |
string | $secure_path = '' |
string | $secure_path_id = '' |
string | $original_request = '' |
string | $file_name = '' |
string | $query = '' |
string | $suffix = '' |
string | $prefix = '' |
string | $appendix = '' |
string | $module_path = '' |
string | $path = '' |
string | $module_type = '' |
string | $module_identifier = '' |
string | $path_without_query = '' |
Static Protected Attributes | |
static array | $image_suffixes |
static array | $video_suffixes |
static array | $audio_suffixes |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilWACPath
Definition at line 25 of file class.ilWACPath.php.
ilWACPath::__construct | ( | string | $path, |
bool | $normalize = true |
||
) |
Definition at line 87 of file class.ilWACPath.php.
References $module_path, $parts, getModuleIdentifier(), handleParameters(), normalizePath(), setAppendix(), setClient(), setFileName(), setInSecFolder(), setModuleIdentifier(), setModulePath(), setModuleType(), setOriginalRequest(), setParameters(), setPath(), setPathWithoutQuery(), setPrefix(), setQuery(), setSecurePath(), setSecurePathId(), and setSuffix().
ilWACPath::fileExists | ( | ) |
Definition at line 340 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getAppendix | ( | ) |
|
static |
Definition at line 190 of file class.ilWACPath.php.
ilWACPath::getCleanURLdecodedPath | ( | ) |
Returns a clean (everything behind ? is removed and rawurldecoded path.
Definition at line 421 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getClient | ( | ) |
ilWACPath::getDirName | ( | ) |
Definition at line 295 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getFileName | ( | ) |
Definition at line 441 of file class.ilWACPath.php.
References $file_name.
Referenced by ilObjUserAccess\canBeDelivered().
|
static |
Definition at line 206 of file class.ilWACPath.php.
ilWACPath::getModuleIdentifier | ( | ) |
Definition at line 491 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::getModulePath | ( | ) |
ilWACPath::getModuleType | ( | ) |
Definition at line 481 of file class.ilWACPath.php.
References $module_type.
Referenced by ilWACSecurePath\hasCheckingInstanceRegistered(), and ilWACSecurePath\returnDbTableName().
ilWACPath::getOriginalRequest | ( | ) |
ilWACPath::getParameters | ( | ) |
Definition at line 174 of file class.ilWACPath.php.
References $parameters.
Referenced by handleParameters().
ilWACPath::getPath | ( | ) |
Definition at line 413 of file class.ilWACPath.php.
References $path.
Referenced by ilObjLearningModuleAccess\_getCommands(), ilBadgeWAC\canBeDelivered(), ilContainerAccess\canBeDelivered(), ilObjMediaObjectAccess\canBeDelivered(), ilObjTestAccess\canBeDelivered(), ilObjFileAccess\canBeDelivered(), ilObjBlogAccess\canBeDelivered(), ilObjectAccess\canBeDelivered(), ilObjPollAccess\canBeDelivered(), ilObjChatroomAccess\canBeDelivered(), and ilPortfolioAccessHandler\canBeDelivered().
ilWACPath::getPathWithoutQuery | ( | ) |
Definition at line 300 of file class.ilWACPath.php.
References $path_without_query.
Referenced by fileExists(), getCleanURLdecodedPath(), and getDirName().
ilWACPath::getPrefix | ( | ) |
ilWACPath::getQuery | ( | ) |
ilWACPath::getSecurePath | ( | ) |
ilWACPath::getSecurePathId | ( | ) |
Definition at line 403 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by ilObjFileAccess\canBeDelivered(), and ilWACSecurePath\returnDbTableName().
ilWACPath::getSuffix | ( | ) |
ilWACPath::getTimestamp | ( | ) |
ilWACPath::getToken | ( | ) |
ilWACPath::getTTL | ( | ) |
|
static |
Definition at line 222 of file class.ilWACPath.php.
|
protected |
Definition at line 157 of file class.ilWACPath.php.
References $param, getParameters(), setTimestamp(), setToken(), setTTL(), ilWACSignedPath\WAC_TIMESTAMP_ID, ilWACSignedPath\WAC_TOKEN_ID, and ilWACSignedPath\WAC_TTL_ID.
Referenced by __construct().
ilWACPath::hasTimestamp | ( | ) |
Definition at line 350 of file class.ilWACPath.php.
ilWACPath::hasToken | ( | ) |
Definition at line 345 of file class.ilWACPath.php.
ilWACPath::hasTTL | ( | ) |
Definition at line 355 of file class.ilWACPath.php.
ilWACPath::isAudio | ( | ) |
Definition at line 330 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
ilWACPath::isImage | ( | ) |
Definition at line 310 of file class.ilWACPath.php.
References getSuffix().
ilWACPath::isInSecFolder | ( | ) |
ilWACPath::isStreamable | ( | ) |
Definition at line 325 of file class.ilWACPath.php.
References isAudio(), and isVideo().
ilWACPath::isVideo | ( | ) |
Definition at line 335 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
|
protected |
Definition at line 235 of file class.ilWACPath.php.
References $query, and ilWACException\NOT_FOUND.
Referenced by __construct().
ilWACPath::setAppendix | ( | string | $appendix | ) |
Definition at line 280 of file class.ilWACPath.php.
References $appendix.
Referenced by __construct().
|
static |
string[] | $audio_suffixes |
Definition at line 198 of file class.ilWACPath.php.
References $audio_suffixes.
ilWACPath::setClient | ( | string | $client | ) |
Definition at line 398 of file class.ilWACPath.php.
References $client.
Referenced by __construct().
ilWACPath::setFileName | ( | string | $file_name | ) |
Definition at line 446 of file class.ilWACPath.php.
References $file_name.
Referenced by __construct().
|
static |
string[] | $image_suffixes |
Definition at line 214 of file class.ilWACPath.php.
References $image_suffixes.
ilWACPath::setInSecFolder | ( | bool | $in_sec_folder | ) |
Definition at line 476 of file class.ilWACPath.php.
References $in_sec_folder.
Referenced by __construct().
ilWACPath::setModuleIdentifier | ( | string | $module_identifier | ) |
Definition at line 496 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::setModulePath | ( | string | $module_path | ) |
Definition at line 290 of file class.ilWACPath.php.
References $module_path.
Referenced by __construct().
ilWACPath::setModuleType | ( | string | $module_type | ) |
Definition at line 486 of file class.ilWACPath.php.
References $module_type.
Referenced by __construct().
ilWACPath::setOriginalRequest | ( | string | $original_request | ) |
Definition at line 456 of file class.ilWACPath.php.
References $original_request.
Referenced by __construct().
ilWACPath::setParameters | ( | array | $parameters | ) |
string[] | $parameters |
Definition at line 182 of file class.ilWACPath.php.
References $parameters.
Referenced by __construct().
ilWACPath::setPath | ( | string | $path | ) |
Definition at line 426 of file class.ilWACPath.php.
References $path.
Referenced by __construct().
ilWACPath::setPathWithoutQuery | ( | string | $path_without_query | ) |
Definition at line 305 of file class.ilWACPath.php.
References $path_without_query.
Referenced by __construct().
ilWACPath::setPrefix | ( | string | $prefix | ) |
Definition at line 270 of file class.ilWACPath.php.
References $prefix.
Referenced by __construct().
ilWACPath::setQuery | ( | string | $query | ) |
Definition at line 436 of file class.ilWACPath.php.
References $query.
Referenced by __construct().
ilWACPath::setSecurePath | ( | string | $secure_path | ) |
Definition at line 466 of file class.ilWACPath.php.
References $secure_path.
Referenced by __construct().
ilWACPath::setSecurePathId | ( | string | $secure_path_id | ) |
Definition at line 408 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by __construct().
ilWACPath::setSuffix | ( | string | $suffix | ) |
Definition at line 320 of file class.ilWACPath.php.
References $suffix.
Referenced by __construct().
ilWACPath::setTimestamp | ( | int | $timestamp | ) |
Definition at line 376 of file class.ilWACPath.php.
References $timestamp, and ilWACSignedPath\WAC_TIMESTAMP_ID.
Referenced by handleParameters().
ilWACPath::setToken | ( | string | $token | ) |
Definition at line 365 of file class.ilWACPath.php.
References $token, and ilWACSignedPath\WAC_TOKEN_ID.
Referenced by handleParameters().
ilWACPath::setTTL | ( | int | $ttl | ) |
Definition at line 387 of file class.ilWACPath.php.
References $ttl, and ilWACSignedPath\WAC_TTL_ID.
Referenced by handleParameters().
|
static |
string[] | $video_suffixes |
Definition at line 230 of file class.ilWACPath.php.
References $video_suffixes.
|
protected |
Definition at line 80 of file class.ilWACPath.php.
Referenced by getAppendix(), and setAppendix().
|
staticprotected |
Definition at line 56 of file class.ilWACPath.php.
Referenced by setAudioSuffixes().
|
protected |
Definition at line 64 of file class.ilWACPath.php.
Referenced by getClient(), and setClient().
|
protected |
Definition at line 76 of file class.ilWACPath.php.
Referenced by getFileName(), and setFileName().
|
staticprotected |
Definition at line 36 of file class.ilWACPath.php.
Referenced by setImageSuffixes().
|
protected |
Definition at line 69 of file class.ilWACPath.php.
Referenced by isInSecFolder(), and setInSecFolder().
|
protected |
Definition at line 84 of file class.ilWACPath.php.
Referenced by getModuleIdentifier(), and setModuleIdentifier().
|
protected |
Definition at line 81 of file class.ilWACPath.php.
Referenced by __construct(), getModulePath(), and setModulePath().
|
protected |
Definition at line 83 of file class.ilWACPath.php.
Referenced by getModuleType(), and setModuleType().
|
protected |
Definition at line 75 of file class.ilWACPath.php.
Referenced by getOriginalRequest(), and setOriginalRequest().
|
protected |
Definition at line 68 of file class.ilWACPath.php.
Referenced by getParameters(), and setParameters().
|
protected |
Definition at line 82 of file class.ilWACPath.php.
|
protected |
Definition at line 85 of file class.ilWACPath.php.
Referenced by getPathWithoutQuery(), and setPathWithoutQuery().
|
protected |
Definition at line 79 of file class.ilWACPath.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 77 of file class.ilWACPath.php.
Referenced by getQuery(), normalizePath(), and setQuery().
|
protected |
Definition at line 73 of file class.ilWACPath.php.
Referenced by getSecurePath(), and setSecurePath().
|
protected |
Definition at line 74 of file class.ilWACPath.php.
Referenced by getSecurePathId(), and setSecurePathId().
|
protected |
Definition at line 78 of file class.ilWACPath.php.
Referenced by getSuffix(), and setSuffix().
|
protected |
Definition at line 71 of file class.ilWACPath.php.
Referenced by getTimestamp(), and setTimestamp().
|
protected |
Definition at line 70 of file class.ilWACPath.php.
Referenced by getToken(), and setToken().
|
protected |
Definition at line 72 of file class.ilWACPath.php.
|
staticprotected |
Definition at line 46 of file class.ilWACPath.php.
Referenced by setVideoSuffixes().
const ilWACPath::DIR_DATA = "data" |
Definition at line 27 of file class.ilWACPath.php.
const ilWACPath::DIR_SEC = "sec" |
Definition at line 28 of file class.ilWACPath.php.
const ilWACPath::REGEX = "(?<prefix>.*?)(?<path>(?<path_without_query>(?<secure_path_id>(?<module_path>\/data\/(?<client>[\w\-\.]*)\/(?<sec>sec\/|)(?<module_type>.*?)\/(?<module_identifier>.*\/|)))(?<appendix>[^\?\n]*)).*)" |
Copy this without to regex101.com and test with some URL of files.
Definition at line 32 of file class.ilWACPath.php.