ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 | |
$client = '' | |
$parameters = [] | |
$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 = ['png', 'jpg', 'jpeg', 'gif', 'svg'] |
static | $video_suffixes = ['mp4', 'm4v', 'mov', 'wmv', 'webm'] |
static | $audio_suffixes = ['mp3', 'aiff', 'aif', 'm4a', 'wav'] |
ilWACPath::__construct | ( | string | $path, |
bool | $normalize = true |
||
) |
Definition at line 124 of file class.ilWACPath.php.
References $query, $result, 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 444 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getAppendix | ( | ) |
|
static |
Definition at line 221 of file class.ilWACPath.php.
ilWACPath::getCleanURLdecodedPath | ( | ) |
Returns a clean (everything behind ? is removed and rawurldecoded path.
Definition at line 588 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getClient | ( | ) |
ilWACPath::getDirName | ( | ) |
Definition at line 361 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getFileName | ( | ) |
Definition at line 626 of file class.ilWACPath.php.
References $file_name.
Referenced by ilObjUserAccess\canBeDelivered().
|
static |
Definition at line 239 of file class.ilWACPath.php.
ilWACPath::getModuleIdentifier | ( | ) |
Definition at line 721 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::getModulePath | ( | ) |
ilWACPath::getModuleType | ( | ) |
Definition at line 702 of file class.ilWACPath.php.
References $module_type.
Referenced by ilWACSecurePath\hasCheckingInstanceRegistered(), and ilWACSecurePath\returnDbTableName().
ilWACPath::getOriginalRequest | ( | ) |
ilWACPath::getParameters | ( | ) |
Definition at line 203 of file class.ilWACPath.php.
References $parameters.
Referenced by handleParameters().
ilWACPath::getPath | ( | ) |
Definition at line 577 of file class.ilWACPath.php.
References $path.
Referenced by ilObjLearningModuleAccess\_getCommands(), ilBadgeWAC\canBeDelivered(), ilContainerAccess\canBeDelivered(), ilObjTestAccess\canBeDelivered(), ilObjFileAccess\canBeDelivered(), ilObjMediaObjectAccess\canBeDelivered(), ilObjBlogAccess\canBeDelivered(), ilObjectAccess\canBeDelivered(), ilObjExerciseAccess\canBeDelivered(), ilObjChatroomAccess\canBeDelivered(), ilObjPollAccess\canBeDelivered(), and ilPortfolioAccessHandler\canBeDelivered().
ilWACPath::getPathWithoutQuery | ( | ) |
Definition at line 370 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 558 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 257 of file class.ilWACPath.php.
|
protected |
Definition at line 185 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 462 of file class.ilWACPath.php.
ilWACPath::hasToken | ( | ) |
Definition at line 453 of file class.ilWACPath.php.
ilWACPath::hasTTL | ( | ) |
Definition at line 471 of file class.ilWACPath.php.
ilWACPath::isAudio | ( | ) |
Definition at line 426 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
ilWACPath::isImage | ( | ) |
Definition at line 389 of file class.ilWACPath.php.
References getSuffix().
ilWACPath::isInSecFolder | ( | ) |
ilWACPath::isStreamable | ( | ) |
Definition at line 417 of file class.ilWACPath.php.
References isAudio(), and isVideo().
ilWACPath::isVideo | ( | ) |
Definition at line 435 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
|
protected |
Definition at line 271 of file class.ilWACPath.php.
References $query, and ilWACException\NOT_FOUND.
Referenced by __construct().
ilWACPath::setAppendix | ( | $appendix | ) |
string | $appendix |
Definition at line 332 of file class.ilWACPath.php.
References $appendix.
Referenced by __construct().
|
static |
array | $audio_suffixes |
Definition at line 230 of file class.ilWACPath.php.
References $audio_suffixes.
ilWACPath::setClient | ( | $client | ) |
string | $client |
Definition at line 548 of file class.ilWACPath.php.
References $client.
Referenced by __construct().
ilWACPath::setFileName | ( | $file_name | ) |
string | $file_name |
Definition at line 635 of file class.ilWACPath.php.
References $file_name.
Referenced by __construct().
|
static |
array | $image_suffixes |
Definition at line 248 of file class.ilWACPath.php.
References $image_suffixes.
ilWACPath::setInSecFolder | ( | $in_sec_folder | ) |
bool | $in_sec_folder |
Definition at line 692 of file class.ilWACPath.php.
References $in_sec_folder.
Referenced by __construct().
ilWACPath::setModuleIdentifier | ( | $module_identifier | ) |
string | $module_identifier |
Definition at line 730 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::setModulePath | ( | $module_path | ) |
string | $module_path |
Definition at line 351 of file class.ilWACPath.php.
References $module_path.
Referenced by __construct().
ilWACPath::setModuleType | ( | $module_type | ) |
string | $module_type |
Definition at line 711 of file class.ilWACPath.php.
References $module_type.
Referenced by __construct().
ilWACPath::setOriginalRequest | ( | $original_request | ) |
string | $original_request |
Definition at line 654 of file class.ilWACPath.php.
References $original_request.
Referenced by __construct().
ilWACPath::setParameters | ( | array | $parameters | ) |
array | $parameters |
Definition at line 212 of file class.ilWACPath.php.
References $parameters.
Referenced by __construct().
ilWACPath::setPath | ( | $path | ) |
string | $path |
Definition at line 597 of file class.ilWACPath.php.
References $path.
Referenced by __construct().
ilWACPath::setPathWithoutQuery | ( | $path_without_query | ) |
string | $path_without_query |
Definition at line 379 of file class.ilWACPath.php.
References $path_without_query.
Referenced by __construct().
ilWACPath::setPrefix | ( | $prefix | ) |
string | $prefix |
Definition at line 313 of file class.ilWACPath.php.
References $prefix.
Referenced by __construct().
ilWACPath::setQuery | ( | $query | ) |
string | $query |
Definition at line 616 of file class.ilWACPath.php.
References $query.
Referenced by __construct().
ilWACPath::setSecurePath | ( | $secure_path | ) |
string | $secure_path |
Definition at line 673 of file class.ilWACPath.php.
References $secure_path.
Referenced by __construct().
ilWACPath::setSecurePathId | ( | $secure_path_id | ) |
string | $secure_path_id |
Definition at line 567 of file class.ilWACPath.php.
References $secure_path_id.
Referenced by __construct().
ilWACPath::setSuffix | ( | $suffix | ) |
string | $suffix |
Definition at line 407 of file class.ilWACPath.php.
References $suffix.
Referenced by __construct().
ilWACPath::setTimestamp | ( | $timestamp | ) |
int | $timestamp |
Definition at line 509 of file class.ilWACPath.php.
References $timestamp, and ilWACSignedPath\WAC_TIMESTAMP_ID.
Referenced by handleParameters().
ilWACPath::setToken | ( | $token | ) |
string | $token |
Definition at line 489 of file class.ilWACPath.php.
References $token, and ilWACSignedPath\WAC_TOKEN_ID.
Referenced by handleParameters().
ilWACPath::setTTL | ( | $ttl | ) |
int | $ttl |
Definition at line 529 of file class.ilWACPath.php.
References $ttl, and ilWACSignedPath\WAC_TTL_ID.
Referenced by handleParameters().
|
static |
array | $video_suffixes |
Definition at line 266 of file class.ilWACPath.php.
References $video_suffixes.
|
protected |
Definition at line 101 of file class.ilWACPath.php.
Referenced by getAppendix(), and setAppendix().
|
staticprotected |
Definition at line 45 of file class.ilWACPath.php.
Referenced by setAudioSuffixes().
|
protected |
Definition at line 49 of file class.ilWACPath.php.
Referenced by getClient(), and setClient().
|
protected |
Definition at line 85 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 57 of file class.ilWACPath.php.
Referenced by isInSecFolder(), and setInSecFolder().
|
protected |
Definition at line 117 of file class.ilWACPath.php.
Referenced by getModuleIdentifier(), and setModuleIdentifier().
|
protected |
Definition at line 105 of file class.ilWACPath.php.
Referenced by getModulePath(), and setModulePath().
|
protected |
Definition at line 113 of file class.ilWACPath.php.
Referenced by getModuleType(), and setModuleType().
|
protected |
Definition at line 81 of file class.ilWACPath.php.
Referenced by getOriginalRequest(), and setOriginalRequest().
|
protected |
Definition at line 53 of file class.ilWACPath.php.
Referenced by getParameters(), and setParameters().
|
protected |
Definition at line 109 of file class.ilWACPath.php.
|
protected |
Definition at line 121 of file class.ilWACPath.php.
Referenced by getPathWithoutQuery(), and setPathWithoutQuery().
|
protected |
Definition at line 97 of file class.ilWACPath.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 89 of file class.ilWACPath.php.
Referenced by __construct(), getQuery(), normalizePath(), and setQuery().
|
protected |
Definition at line 73 of file class.ilWACPath.php.
Referenced by getSecurePath(), and setSecurePath().
|
protected |
Definition at line 77 of file class.ilWACPath.php.
Referenced by getSecurePathId(), and setSecurePathId().
|
protected |
Definition at line 93 of file class.ilWACPath.php.
Referenced by getSuffix(), and setSuffix().
|
protected |
Definition at line 65 of file class.ilWACPath.php.
Referenced by getTimestamp(), and setTimestamp().
|
protected |
Definition at line 61 of file class.ilWACPath.php.
Referenced by getToken(), and setToken().
|
protected |
Definition at line 69 of file class.ilWACPath.php.
|
staticprotected |
Definition at line 41 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.