|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Collaboration diagram for ilWACPath:Public Member Functions | |
| __construct ($path) | |
| ilWACPath constructor. More... | |
| getParameters () | |
| setParameters ($parameters) | |
| getPrefix () | |
| setPrefix ($prefix) | |
| getAppendix () | |
| setAppendix ($appendix) | |
| getModulePath () | |
| setModulePath ($module_path) | |
| getDirName () | |
| getPathWithoutQuery () | |
| setPathWithoutQuery ($path_without_query) | |
| isImage () | |
| getSuffix () | |
| setSuffix ($suffix) | |
| isStreamable () | |
| isAudio () | |
| isVideo () | |
| fileExists () | |
| hasToken () | |
| hasTimestamp () | |
| hasTTL () | |
| getToken () | |
| setToken ($token) | |
| getTimestamp () | |
| setTimestamp ($timestamp) | |
| getTTL () | |
| setTTL ($ttl) | |
| getClient () | |
| setClient ($client) | |
| getSecurePathId () | |
| setSecurePathId ($secure_path_id) | |
| getPath () | |
| setPath ($path) | |
| getQuery () | |
| setQuery ($query) | |
| getFileName () | |
| setFileName ($file_name) | |
| getOriginalRequest () | |
| setOriginalRequest ($original_request) | |
| getSecurePath () | |
| setSecurePath ($secure_path) | |
| isInSecFolder () | |
| setInSecFolder ($in_sec_folder) | |
| getModuleType () | |
| setModuleType ($module_type) | |
| getModuleIdentifier () | |
| setModuleIdentifier ($module_identifier) | |
Static Public Member Functions | |
| static | getAudioSuffixes () |
| static | setAudioSuffixes ($audio_suffixes) |
| static | getImageSuffixes () |
| static | setImageSuffixes ($image_suffixes) |
| static | getVideoSuffixes () |
| static | setVideoSuffixes ($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 () | |
Protected Attributes | |
| $client = '' | |
| $parameters = array() | |
| $in_sec_folder = false | |
| $token = '' | |
| $timestamp = 0 | |
| $ttl = 0 | |
| $secure_path = '' | |
| $secure_path_id = '' | |
| $original_request = '' | |
| $file_name = '' | |
| $query = '' | |
| $suffix = '' | |
| $prefix = '' | |
| $appendix = '' | |
| $module_path = '' | |
| $path = '' | |
| $module_type = '' | |
| $module_identifier = '' | |
| $path_without_query = '' | |
Static Protected Attributes | |
| static | $image_suffixes |
| static | $video_suffixes |
| static | $audio_suffixes |
| ilWACPath::__construct | ( | $path | ) |
ilWACPath constructor.
| string | $path |
Definition at line 130 of file class.ilWACPath.php.
References $path, $query, $result, getModuleIdentifier(), handleParameters(), 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 371 of file class.ilWACPath.php.
References getPathWithoutQuery().
Here is the call graph for this function:| ilWACPath::getAppendix | ( | ) |
|
static |
Definition at line 203 of file class.ilWACPath.php.
References $audio_suffixes.
| ilWACPath::getClient | ( | ) |
| ilWACPath::getDirName | ( | ) |
Definition at line 299 of file class.ilWACPath.php.
References getPathWithoutQuery().
Here is the call graph for this function:| ilWACPath::getFileName | ( | ) |
Definition at line 518 of file class.ilWACPath.php.
References $file_name.
Referenced by ilObjUserAccess\canBeDelivered().
Here is the caller graph for this function:
|
static |
Definition at line 219 of file class.ilWACPath.php.
References $image_suffixes.
| ilWACPath::getModuleIdentifier | ( | ) |
Definition at line 598 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::getModulePath | ( | ) |
Definition at line 283 of file class.ilWACPath.php.
References $module_path.
| ilWACPath::getModuleType | ( | ) |
Definition at line 582 of file class.ilWACPath.php.
References $module_type.
| ilWACPath::getOriginalRequest | ( | ) |
Definition at line 534 of file class.ilWACPath.php.
References $original_request.
| ilWACPath::getParameters | ( | ) |
Definition at line 187 of file class.ilWACPath.php.
References $parameters.
Referenced by handleParameters().
Here is the caller graph for this function:| ilWACPath::getPath | ( | ) |
Definition at line 486 of file class.ilWACPath.php.
References $path.
Referenced by ilObjBlogAccess\canBeDelivered(), ilObjChatroomAccess\canBeDelivered(), ilObjFileAccess\canBeDelivered(), ilObjPollAccess\canBeDelivered(), ilPortfolioAccessHandler\canBeDelivered(), and ilObjMediaObjectAccess\canBeDelivered().
Here is the caller graph for this function:| ilWACPath::getPathWithoutQuery | ( | ) |
Definition at line 307 of file class.ilWACPath.php.
References $path_without_query.
Referenced by fileExists(), and getDirName().
Here is the caller graph for this function:| ilWACPath::getPrefix | ( | ) |
| ilWACPath::getQuery | ( | ) |
| ilWACPath::getSecurePath | ( | ) |
Definition at line 550 of file class.ilWACPath.php.
References $secure_path.
| ilWACPath::getSecurePathId | ( | ) |
Definition at line 470 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by ilObjFileAccess\canBeDelivered().
Here is the caller graph for this function:| ilWACPath::getSuffix | ( | ) |
| ilWACPath::getTimestamp | ( | ) |
| ilWACPath::getToken | ( | ) |
| ilWACPath::getTTL | ( | ) |
|
static |
Definition at line 235 of file class.ilWACPath.php.
References $video_suffixes.
|
protected |
Definition at line 170 of file class.ilWACPath.php.
References 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 387 of file class.ilWACPath.php.
| ilWACPath::hasToken | ( | ) |
Definition at line 379 of file class.ilWACPath.php.
| ilWACPath::hasTTL | ( | ) |
Definition at line 395 of file class.ilWACPath.php.
| ilWACPath::isAudio | ( | ) |
Definition at line 355 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 323 of file class.ilWACPath.php.
References getSuffix().
Here is the call graph for this function:| ilWACPath::isInSecFolder | ( | ) |
Definition at line 566 of file class.ilWACPath.php.
References $in_sec_folder.
| ilWACPath::isStreamable | ( | ) |
Definition at line 347 of file class.ilWACPath.php.
References isAudio(), and isVideo().
Here is the call graph for this function:| ilWACPath::isVideo | ( | ) |
Definition at line 363 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::setAppendix | ( | $appendix | ) |
| string | $appendix |
Definition at line 275 of file class.ilWACPath.php.
References $appendix.
Referenced by __construct().
Here is the caller graph for this function:
|
static |
| array | $audio_suffixes |
Definition at line 211 of file class.ilWACPath.php.
References $audio_suffixes.
| ilWACPath::setClient | ( | $client | ) |
| string | $client |
Definition at line 462 of file class.ilWACPath.php.
References $client.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setFileName | ( | $file_name | ) |
| string | $file_name |
Definition at line 526 of file class.ilWACPath.php.
References $file_name.
Referenced by __construct().
Here is the caller graph for this function:
|
static |
| array | $image_suffixes |
Definition at line 227 of file class.ilWACPath.php.
References $image_suffixes.
| ilWACPath::setInSecFolder | ( | $in_sec_folder | ) |
| boolean | $in_sec_folder |
Definition at line 574 of file class.ilWACPath.php.
References $in_sec_folder.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setModuleIdentifier | ( | $module_identifier | ) |
| string | $module_identifier |
Definition at line 606 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setModulePath | ( | $module_path | ) |
| string | $module_path |
Definition at line 291 of file class.ilWACPath.php.
References $module_path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setModuleType | ( | $module_type | ) |
| string | $module_type |
Definition at line 590 of file class.ilWACPath.php.
References $module_type.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setOriginalRequest | ( | $original_request | ) |
| string | $original_request |
Definition at line 542 of file class.ilWACPath.php.
References $original_request.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setParameters | ( | $parameters | ) |
| array | $parameters |
Definition at line 195 of file class.ilWACPath.php.
References $parameters.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setPath | ( | $path | ) |
| string | $path |
Definition at line 494 of file class.ilWACPath.php.
References $path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setPathWithoutQuery | ( | $path_without_query | ) |
| string | $path_without_query |
Definition at line 315 of file class.ilWACPath.php.
References $path_without_query.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setPrefix | ( | $prefix | ) |
| string | $prefix |
Definition at line 259 of file class.ilWACPath.php.
References $prefix.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setQuery | ( | $query | ) |
| string | $query |
Definition at line 510 of file class.ilWACPath.php.
References $query.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setSecurePath | ( | $secure_path | ) |
| string | $secure_path |
Definition at line 558 of file class.ilWACPath.php.
References $secure_path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setSecurePathId | ( | $secure_path_id | ) |
| string | $secure_path_id |
Definition at line 478 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setSuffix | ( | $suffix | ) |
| string | $suffix |
Definition at line 339 of file class.ilWACPath.php.
References $suffix.
Referenced by __construct().
Here is the caller graph for this function:| ilWACPath::setTimestamp | ( | $timestamp | ) |
| $timestamp |
Definition at line 428 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 | ( | $token | ) |
| $token |
Definition at line 411 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 | ( | $ttl | ) |
| int | $ttl |
Definition at line 445 of file class.ilWACPath.php.
References $ttl, and ilWACSignedPath\WAC_TTL_ID.
Referenced by handleParameters().
Here is the caller graph for this function:
|
static |
| array | $video_suffixes |
Definition at line 243 of file class.ilWACPath.php.
References $video_suffixes.
|
protected |
Definition at line 102 of file class.ilWACPath.php.
Referenced by getAppendix(), and setAppendix().
|
staticprotected |
Definition at line 40 of file class.ilWACPath.php.
Referenced by getAudioSuffixes(), and setAudioSuffixes().
|
protected |
Definition at line 50 of file class.ilWACPath.php.
Referenced by getClient(), and setClient().
|
protected |
Definition at line 86 of file class.ilWACPath.php.
Referenced by getFileName(), and setFileName().
|
staticprotected |
Definition at line 20 of file class.ilWACPath.php.
Referenced by getImageSuffixes(), and setImageSuffixes().
|
protected |
Definition at line 58 of file class.ilWACPath.php.
Referenced by isInSecFolder(), and setInSecFolder().
|
protected |
Definition at line 118 of file class.ilWACPath.php.
Referenced by getModuleIdentifier(), and setModuleIdentifier().
|
protected |
Definition at line 106 of file class.ilWACPath.php.
Referenced by getModulePath(), and setModulePath().
|
protected |
Definition at line 114 of file class.ilWACPath.php.
Referenced by getModuleType(), and setModuleType().
|
protected |
Definition at line 82 of file class.ilWACPath.php.
Referenced by getOriginalRequest(), and setOriginalRequest().
|
protected |
Definition at line 54 of file class.ilWACPath.php.
Referenced by getParameters(), and setParameters().
|
protected |
Definition at line 110 of file class.ilWACPath.php.
Referenced by __construct(), getPath(), and setPath().
|
protected |
Definition at line 122 of file class.ilWACPath.php.
Referenced by getPathWithoutQuery(), and setPathWithoutQuery().
|
protected |
Definition at line 98 of file class.ilWACPath.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 90 of file class.ilWACPath.php.
Referenced by __construct(), getQuery(), and setQuery().
|
protected |
Definition at line 74 of file class.ilWACPath.php.
Referenced by getSecurePath(), and setSecurePath().
|
protected |
Definition at line 78 of file class.ilWACPath.php.
Referenced by getSecurePathId(), and setSecurePathId().
|
protected |
Definition at line 94 of file class.ilWACPath.php.
Referenced by getSuffix(), and setSuffix().
|
protected |
Definition at line 66 of file class.ilWACPath.php.
Referenced by getTimestamp(), and setTimestamp().
|
protected |
Definition at line 62 of file class.ilWACPath.php.
Referenced by getToken(), and setToken().
|
protected |
Definition at line 70 of file class.ilWACPath.php.
|
staticprotected |
Definition at line 30 of file class.ilWACPath.php.
Referenced by getVideoSuffixes(), and setVideoSuffixes().
| const ilWACPath::DIR_DATA = "data" |
Definition at line 11 of file class.ilWACPath.php.
| const ilWACPath::DIR_SEC = "sec" |
Definition at line 12 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 16 of file class.ilWACPath.php.