ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
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) | |
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 26 of file class.ilWACPath.php.
ilWACPath::__construct | ( | string | $path | ) |
Definition at line 88 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 343 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getAppendix | ( | ) |
Definition at line 275 of file class.ilWACPath.php.
References $appendix.
Referenced by ilWACSignedResourceStorage\canBeDelivered().
|
static |
Definition at line 189 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().
Referenced by ilWebAccessChecker\check().
ilWACPath::getClient | ( | ) |
ilWACPath::getDirName | ( | ) |
Definition at line 295 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getFileName | ( | ) |
Definition at line 445 of file class.ilWACPath.php.
References $file_name.
Referenced by ilObjUserAccess\canBeDelivered().
|
static |
Definition at line 205 of file class.ilWACPath.php.
ilWACPath::getModuleIdentifier | ( | ) |
Definition at line 495 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::getModulePath | ( | ) |
ilWACPath::getModuleType | ( | ) |
Definition at line 485 of file class.ilWACPath.php.
References $module_type.
Referenced by ilWebAccessChecker\check(), ilWACSecurePath\hasCheckingInstanceRegistered(), and ilWACSecurePath\returnDbTableName().
ilWACPath::getOriginalRequest | ( | ) |
ilWACPath::getParameters | ( | ) |
Definition at line 173 of file class.ilWACPath.php.
References $parameters.
Referenced by handleParameters().
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().
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 406 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by ilWACSecurePath\returnDbTableName().
ilWACPath::getSuffix | ( | ) |
ilWACPath::getTimestamp | ( | ) |
ilWACPath::getToken | ( | ) |
ilWACPath::getTTL | ( | ) |
|
static |
Definition at line 221 of file class.ilWACPath.php.
|
protected |
Definition at line 156 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 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().
ilWACPath::isImage | ( | ) |
Definition at line 310 of file class.ilWACPath.php.
References getSuffix().
ilWACPath::isInSecFolder | ( | ) |
Definition at line 475 of file class.ilWACPath.php.
References $in_sec_folder.
Referenced by ilWebAccessChecker\check().
ilWACPath::isStreamable | ( | ) |
Definition at line 325 of file class.ilWACPath.php.
References isAudio(), and isVideo().
ilWACPath::isVideo | ( | ) |
Definition at line 338 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
|
protected |
Definition at line 234 of file class.ilWACPath.php.
References $path, $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 197 of file class.ilWACPath.php.
References $audio_suffixes.
ilWACPath::setClient | ( | string | $client | ) |
Definition at line 401 of file class.ilWACPath.php.
References $client, and ILIAS\UI\examples\Progress\Bar\client().
Referenced by __construct().
ilWACPath::setFileName | ( | string | $file_name | ) |
Definition at line 450 of file class.ilWACPath.php.
References $file_name.
Referenced by __construct().
|
static |
string[] | $image_suffixes |
Definition at line 213 of file class.ilWACPath.php.
References $image_suffixes.
ilWACPath::setInSecFolder | ( | bool | $in_sec_folder | ) |
Definition at line 480 of file class.ilWACPath.php.
References $in_sec_folder.
Referenced by __construct().
ilWACPath::setModuleIdentifier | ( | string | $module_identifier | ) |
Definition at line 500 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 490 of file class.ilWACPath.php.
References $module_type.
Referenced by __construct().
ilWACPath::setOriginalRequest | ( | string | $original_request | ) |
Definition at line 460 of file class.ilWACPath.php.
References $original_request.
Referenced by __construct().
ilWACPath::setParameters | ( | array | $parameters | ) |
string[] | $parameters |
Definition at line 181 of file class.ilWACPath.php.
References $parameters, and ILIAS\UI\examples\Prompt\Standard\parameters().
Referenced by __construct().
ilWACPath::setPath | ( | string | $path | ) |
Definition at line 430 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 440 of file class.ilWACPath.php.
References $query.
Referenced by __construct().
ilWACPath::setSecurePath | ( | string | $secure_path | ) |
Definition at line 470 of file class.ilWACPath.php.
References $secure_path.
Referenced by __construct().
ilWACPath::setSecurePathId | ( | string | $secure_path_id | ) |
Definition at line 411 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 379 of file class.ilWACPath.php.
References $timestamp, ILIAS\UI\examples\Prompt\Standard\parameters(), and ilWACSignedPath\WAC_TIMESTAMP_ID.
Referenced by handleParameters().
ilWACPath::setToken | ( | string | $token | ) |
Definition at line 368 of file class.ilWACPath.php.
References $token, ILIAS\UI\examples\Prompt\Standard\parameters(), and ilWACSignedPath\WAC_TOKEN_ID.
Referenced by handleParameters().
ilWACPath::setTTL | ( | int | $ttl | ) |
Definition at line 390 of file class.ilWACPath.php.
References $ttl, ILIAS\UI\examples\Prompt\Standard\parameters(), and ilWACSignedPath\WAC_TTL_ID.
Referenced by handleParameters().
|
static |
string[] | $video_suffixes |
Definition at line 229 of file class.ilWACPath.php.
References $video_suffixes.
|
protected |
Definition at line 81 of file class.ilWACPath.php.
Referenced by getAppendix(), and setAppendix().
|
staticprotected |
Definition at line 57 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 77 of file class.ilWACPath.php.
Referenced by getFileName(), and setFileName().
|
staticprotected |
Definition at line 37 of file class.ilWACPath.php.
Referenced by setImageSuffixes().
|
protected |
Definition at line 70 of file class.ilWACPath.php.
Referenced by isInSecFolder(), and setInSecFolder().
|
protected |
Definition at line 85 of file class.ilWACPath.php.
Referenced by getModuleIdentifier(), and setModuleIdentifier().
|
protected |
Definition at line 82 of file class.ilWACPath.php.
Referenced by __construct(), getModulePath(), and setModulePath().
|
protected |
Definition at line 84 of file class.ilWACPath.php.
Referenced by getModuleType(), and setModuleType().
|
protected |
Definition at line 76 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 83 of file class.ilWACPath.php.
Referenced by getPath(), normalizePath(), and setPath().
|
protected |
Definition at line 86 of file class.ilWACPath.php.
Referenced by getPathWithoutQuery(), and setPathWithoutQuery().
|
protected |
Definition at line 80 of file class.ilWACPath.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 78 of file class.ilWACPath.php.
Referenced by getQuery(), normalizePath(), and setQuery().
|
protected |
Definition at line 74 of file class.ilWACPath.php.
Referenced by getSecurePath(), and setSecurePath().
|
protected |
Definition at line 75 of file class.ilWACPath.php.
Referenced by getSecurePathId(), and setSecurePathId().
|
protected |
Definition at line 79 of file class.ilWACPath.php.
Referenced by getSuffix(), and setSuffix().
|
protected |
Definition at line 72 of file class.ilWACPath.php.
Referenced by getTimestamp(), and setTimestamp().
|
protected |
Definition at line 71 of file class.ilWACPath.php.
Referenced by getToken(), and setToken().
|
protected |
Definition at line 73 of file class.ilWACPath.php.
|
staticprotected |
Definition at line 47 of file class.ilWACPath.php.
Referenced by setVideoSuffixes().
const ilWACPath::DIR_DATA = "data" |
Definition at line 28 of file class.ilWACPath.php.
const ilWACPath::DIR_SEC = "sec" |
Definition at line 29 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 33 of file class.ilWACPath.php.