ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 () | |
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 |
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 24 of file class.ilWACPath.php.
ilWACPath::__construct | ( | $path | ) |
ilWACPath constructor.
string | $path |
Definition at line 145 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().
ilWACPath::fileExists | ( | ) |
Definition at line 431 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getAppendix | ( | ) |
|
static |
Definition at line 237 of file class.ilWACPath.php.
ilWACPath::getCleanURLdecodedPath | ( | ) |
Returns a clean (everything behind ? is removed and rawurldecoded path.
Definition at line 575 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getClient | ( | ) |
ilWACPath::getDirName | ( | ) |
Definition at line 348 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getFileName | ( | ) |
Definition at line 615 of file class.ilWACPath.php.
References $file_name.
Referenced by ilObjUserAccess\canBeDelivered().
|
static |
Definition at line 255 of file class.ilWACPath.php.
ilWACPath::getModuleIdentifier | ( | ) |
Definition at line 710 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::getModulePath | ( | ) |
ilWACPath::getModuleType | ( | ) |
Definition at line 691 of file class.ilWACPath.php.
References $module_type.
Referenced by ilWACSecurePath\hasCheckingInstanceRegistered(), and ilWACSecurePath\returnDbTableName().
ilWACPath::getOriginalRequest | ( | ) |
ilWACPath::getParameters | ( | ) |
Definition at line 219 of file class.ilWACPath.php.
References $parameters.
Referenced by handleParameters().
ilWACPath::getPath | ( | ) |
Definition at line 564 of file class.ilWACPath.php.
References $path.
Referenced by ilObjLearningModuleAccess\_getCommands(), ilContainerAccess\canBeDelivered(), ilObjFileAccess\canBeDelivered(), ilObjMediaObjectAccess\canBeDelivered(), ilObjBlogAccess\canBeDelivered(), ilObjectAccess\canBeDelivered(), ilObjExerciseAccess\canBeDelivered(), ilObjChatroomAccess\canBeDelivered(), ilObjPollAccess\canBeDelivered(), and ilPortfolioAccessHandler\canBeDelivered().
ilWACPath::getPathWithoutQuery | ( | ) |
Definition at line 357 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 545 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 273 of file class.ilWACPath.php.
|
protected |
Definition at line 201 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 449 of file class.ilWACPath.php.
ilWACPath::hasToken | ( | ) |
Definition at line 440 of file class.ilWACPath.php.
ilWACPath::hasTTL | ( | ) |
Definition at line 458 of file class.ilWACPath.php.
ilWACPath::isAudio | ( | ) |
Definition at line 413 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
ilWACPath::isImage | ( | ) |
Definition at line 376 of file class.ilWACPath.php.
References getSuffix().
ilWACPath::isInSecFolder | ( | ) |
ilWACPath::isStreamable | ( | ) |
Definition at line 404 of file class.ilWACPath.php.
References isAudio(), and isVideo().
ilWACPath::isVideo | ( | ) |
Definition at line 422 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
ilWACPath::setAppendix | ( | $appendix | ) |
string | $appendix |
Definition at line 319 of file class.ilWACPath.php.
References $appendix.
Referenced by __construct().
|
static |
array | $audio_suffixes |
Definition at line 246 of file class.ilWACPath.php.
References $audio_suffixes.
ilWACPath::setClient | ( | $client | ) |
string | $client |
Definition at line 535 of file class.ilWACPath.php.
References $client.
Referenced by __construct().
ilWACPath::setFileName | ( | $file_name | ) |
string | $file_name |
Definition at line 624 of file class.ilWACPath.php.
References $file_name.
Referenced by __construct().
|
static |
array | $image_suffixes |
Definition at line 264 of file class.ilWACPath.php.
References $image_suffixes.
ilWACPath::setInSecFolder | ( | $in_sec_folder | ) |
bool | $in_sec_folder |
Definition at line 681 of file class.ilWACPath.php.
References $in_sec_folder.
Referenced by __construct().
ilWACPath::setModuleIdentifier | ( | $module_identifier | ) |
string | $module_identifier |
Definition at line 719 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::setModulePath | ( | $module_path | ) |
string | $module_path |
Definition at line 338 of file class.ilWACPath.php.
References $module_path.
Referenced by __construct().
ilWACPath::setModuleType | ( | $module_type | ) |
string | $module_type |
Definition at line 700 of file class.ilWACPath.php.
References $module_type.
Referenced by __construct().
ilWACPath::setOriginalRequest | ( | $original_request | ) |
string | $original_request |
Definition at line 643 of file class.ilWACPath.php.
References $original_request.
Referenced by __construct().
ilWACPath::setParameters | ( | array | $parameters | ) |
array | $parameters |
Definition at line 228 of file class.ilWACPath.php.
References $parameters.
Referenced by __construct().
ilWACPath::setPath | ( | $path | ) |
string | $path |
Definition at line 586 of file class.ilWACPath.php.
References $path.
Referenced by __construct().
ilWACPath::setPathWithoutQuery | ( | $path_without_query | ) |
string | $path_without_query |
Definition at line 366 of file class.ilWACPath.php.
References $path_without_query.
Referenced by __construct().
ilWACPath::setPrefix | ( | $prefix | ) |
string | $prefix |
Definition at line 300 of file class.ilWACPath.php.
References $prefix.
Referenced by __construct().
ilWACPath::setQuery | ( | $query | ) |
string | $query |
Definition at line 605 of file class.ilWACPath.php.
References $query.
Referenced by __construct().
ilWACPath::setSecurePath | ( | $secure_path | ) |
string | $secure_path |
Definition at line 662 of file class.ilWACPath.php.
References $secure_path.
Referenced by __construct().
ilWACPath::setSecurePathId | ( | $secure_path_id | ) |
string | $secure_path_id |
Definition at line 554 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by __construct().
ilWACPath::setSuffix | ( | $suffix | ) |
string | $suffix |
Definition at line 394 of file class.ilWACPath.php.
References $suffix.
Referenced by __construct().
ilWACPath::setTimestamp | ( | $timestamp | ) |
int | $timestamp |
Definition at line 496 of file class.ilWACPath.php.
References $timestamp, and ilWACSignedPath\WAC_TIMESTAMP_ID.
Referenced by handleParameters().
ilWACPath::setToken | ( | $token | ) |
string | $token |
Definition at line 476 of file class.ilWACPath.php.
References $token, and ilWACSignedPath\WAC_TOKEN_ID.
Referenced by handleParameters().
ilWACPath::setTTL | ( | $ttl | ) |
int | $ttl |
Definition at line 516 of file class.ilWACPath.php.
References $ttl, and ilWACSignedPath\WAC_TTL_ID.
Referenced by handleParameters().
|
static |
array | $video_suffixes |
Definition at line 282 of file class.ilWACPath.php.
References $video_suffixes.
|
protected |
Definition at line 117 of file class.ilWACPath.php.
Referenced by getAppendix(), and setAppendix().
|
staticprotected |
Definition at line 55 of file class.ilWACPath.php.
Referenced by setAudioSuffixes().
|
protected |
Definition at line 65 of file class.ilWACPath.php.
Referenced by getClient(), and setClient().
|
protected |
Definition at line 101 of file class.ilWACPath.php.
Referenced by getFileName(), and setFileName().
|
staticprotected |
Definition at line 35 of file class.ilWACPath.php.
Referenced by setImageSuffixes().
|
protected |
Definition at line 73 of file class.ilWACPath.php.
Referenced by isInSecFolder(), and setInSecFolder().
|
protected |
Definition at line 133 of file class.ilWACPath.php.
Referenced by getModuleIdentifier(), and setModuleIdentifier().
|
protected |
Definition at line 121 of file class.ilWACPath.php.
Referenced by getModulePath(), and setModulePath().
|
protected |
Definition at line 129 of file class.ilWACPath.php.
Referenced by getModuleType(), and setModuleType().
|
protected |
Definition at line 97 of file class.ilWACPath.php.
Referenced by getOriginalRequest(), and setOriginalRequest().
|
protected |
Definition at line 69 of file class.ilWACPath.php.
Referenced by getParameters(), and setParameters().
|
protected |
Definition at line 125 of file class.ilWACPath.php.
Referenced by __construct(), getPath(), and setPath().
|
protected |
Definition at line 137 of file class.ilWACPath.php.
Referenced by getPathWithoutQuery(), and setPathWithoutQuery().
|
protected |
Definition at line 113 of file class.ilWACPath.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 105 of file class.ilWACPath.php.
Referenced by __construct(), getQuery(), and setQuery().
|
protected |
Definition at line 89 of file class.ilWACPath.php.
Referenced by getSecurePath(), and setSecurePath().
|
protected |
Definition at line 93 of file class.ilWACPath.php.
Referenced by getSecurePathId(), and setSecurePathId().
|
protected |
Definition at line 109 of file class.ilWACPath.php.
Referenced by getSuffix(), and setSuffix().
|
protected |
Definition at line 81 of file class.ilWACPath.php.
Referenced by getTimestamp(), and setTimestamp().
|
protected |
Definition at line 77 of file class.ilWACPath.php.
Referenced by getToken(), and setToken().
|
protected |
Definition at line 85 of file class.ilWACPath.php.
|
staticprotected |
Definition at line 45 of file class.ilWACPath.php.
Referenced by setVideoSuffixes().
const ilWACPath::DIR_DATA = "data" |
Definition at line 26 of file class.ilWACPath.php.
const ilWACPath::DIR_SEC = "sec" |
Definition at line 27 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 31 of file class.ilWACPath.php.