|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilWACPath: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().
Here is the call graph for this function:| ilWACPath::fileExists | ( | ) |
Definition at line 343 of file class.ilWACPath.php.
References getPathWithoutQuery().
Here is the call graph for this function:| ilWACPath::getAppendix | ( | ) |
Definition at line 275 of file class.ilWACPath.php.
References $appendix.
Referenced by ilWACSignedResourceStorage\canBeDelivered().
Here is the caller graph for this function:
|
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 424 of file class.ilWACPath.php.
References getPathWithoutQuery().
Here is the call graph for this function:| ilWACPath::getClient | ( | ) |
| ilWACPath::getDirName | ( | ) |
Definition at line 295 of file class.ilWACPath.php.
References getPathWithoutQuery().
Here is the call graph for this function:| ilWACPath::getFileName | ( | ) |
Definition at line 444 of file class.ilWACPath.php.
References $file_name.
Referenced by ilObjUserAccess\canBeDelivered().
Here is the caller graph for this function:
|
static |
Definition at line 206 of file class.ilWACPath.php.
| ilWACPath::getModuleIdentifier | ( | ) |
Definition at line 494 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::getModulePath | ( | ) |
| ilWACPath::getModuleType | ( | ) |
Definition at line 484 of file class.ilWACPath.php.
References $module_type.
Referenced by ilWACSecurePath\hasCheckingInstanceRegistered(), and ilWACSecurePath\returnDbTableName().
Here is the caller graph for this function:| ilWACPath::getOriginalRequest | ( | ) |
| ilWACPath::getParameters | ( | ) |
Definition at line 174 of file class.ilWACPath.php.
References $parameters.
Referenced by handleParameters().
Here is the caller graph for this function:| ilWACPath::getPath | ( | ) |
Definition at line 416 of file class.ilWACPath.php.
References $path.
Referenced by ilObjLearningModuleAccess\_getCommands(), ilBadgeWAC\canBeDelivered(), ilContainerAccess\canBeDelivered(), ilObjMediaObjectAccess\canBeDelivered(), ilObjTestAccess\canBeDelivered(), ilObjBlogAccess\canBeDelivered(), ilObjPollAccess\canBeDelivered(), ilObjectAccess\canBeDelivered(), and ilPortfolioAccessHandler\canBeDelivered().
Here is the caller graph for this function:| ilWACPath::getPathWithoutQuery | ( | ) |
Definition at line 300 of file class.ilWACPath.php.
References $path_without_query.
Referenced by fileExists(), getCleanURLdecodedPath(), and getDirName().
Here is the caller graph for this function:| ilWACPath::getPrefix | ( | ) |
| ilWACPath::getQuery | ( | ) |
| ilWACPath::getSecurePath | ( | ) |
| ilWACPath::getSecurePathId | ( | ) |
Definition at line 406 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by ilWACSecurePath\returnDbTableName().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACPath::hasTimestamp | ( | ) |
Definition at line 353 of file class.ilWACPath.php.
| ilWACPath::hasToken | ( | ) |
Definition at line 348 of file class.ilWACPath.php.
| ilWACPath::hasTTL | ( | ) |
Definition at line 358 of file class.ilWACPath.php.
| ilWACPath::isAudio | ( | ) |
Definition at line 333 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACPath::isImage | ( | ) |
Definition at line 310 of file class.ilWACPath.php.
References getSuffix().
Here is the call graph for this function:| ilWACPath::isInSecFolder | ( | ) |
| ilWACPath::isStreamable | ( | ) |
Definition at line 325 of file class.ilWACPath.php.
References isAudio(), and isVideo().
Here is the call graph for this function:| ilWACPath::isVideo | ( | ) |
Definition at line 338 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 235 of file class.ilWACPath.php.
References $query, and ilWACException\NOT_FOUND.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setAppendix | ( | string | $appendix | ) |
Definition at line 280 of file class.ilWACPath.php.
References $appendix.
Referenced by __construct().
Here is the caller graph for this function:
|
static |
| string[] | $audio_suffixes |
Definition at line 198 of file class.ilWACPath.php.
References $audio_suffixes.
| ilWACPath::setClient | ( | string | $client | ) |
Definition at line 401 of file class.ilWACPath.php.
References $client.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setFileName | ( | string | $file_name | ) |
Definition at line 449 of file class.ilWACPath.php.
References $file_name.
Referenced by __construct().
Here is the caller graph for this function:
|
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 479 of file class.ilWACPath.php.
References $in_sec_folder.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setModuleIdentifier | ( | string | $module_identifier | ) |
Definition at line 499 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setModulePath | ( | string | $module_path | ) |
Definition at line 290 of file class.ilWACPath.php.
References $module_path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setModuleType | ( | string | $module_type | ) |
Definition at line 489 of file class.ilWACPath.php.
References $module_type.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setOriginalRequest | ( | string | $original_request | ) |
Definition at line 459 of file class.ilWACPath.php.
References $original_request.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setParameters | ( | array | $parameters | ) |
| string[] | $parameters |
Definition at line 182 of file class.ilWACPath.php.
References $parameters.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setPath | ( | string | $path | ) |
Definition at line 429 of file class.ilWACPath.php.
References $path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setPathWithoutQuery | ( | string | $path_without_query | ) |
Definition at line 305 of file class.ilWACPath.php.
References $path_without_query.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setPrefix | ( | string | $prefix | ) |
Definition at line 270 of file class.ilWACPath.php.
References $prefix.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setQuery | ( | string | $query | ) |
Definition at line 439 of file class.ilWACPath.php.
References $query.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setSecurePath | ( | string | $secure_path | ) |
Definition at line 469 of file class.ilWACPath.php.
References $secure_path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setSecurePathId | ( | string | $secure_path_id | ) |
Definition at line 411 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setSuffix | ( | string | $suffix | ) |
Definition at line 320 of file class.ilWACPath.php.
References $suffix.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setTimestamp | ( | int | $timestamp | ) |
Definition at line 379 of file class.ilWACPath.php.
References $timestamp, and ilWACSignedPath\WAC_TIMESTAMP_ID.
Referenced by handleParameters().
Here is the caller graph for this function:| ilWACPath::setToken | ( | string | $token | ) |
Definition at line 368 of file class.ilWACPath.php.
References $token, and ilWACSignedPath\WAC_TOKEN_ID.
Referenced by handleParameters().
Here is the caller graph for this function:| ilWACPath::setTTL | ( | int | $ttl | ) |
Definition at line 390 of file class.ilWACPath.php.
References $ttl, and ilWACSignedPath\WAC_TTL_ID.
Referenced by handleParameters().
Here is the caller graph for this function:
|
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.