ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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().
ilWACPath::fileExists | ( | ) |
Definition at line 371 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getAppendix | ( | ) |
|
static |
Definition at line 203 of file class.ilWACPath.php.
ilWACPath::getClient | ( | ) |
ilWACPath::getDirName | ( | ) |
Definition at line 299 of file class.ilWACPath.php.
References getPathWithoutQuery().
ilWACPath::getFileName | ( | ) |
Definition at line 518 of file class.ilWACPath.php.
References $file_name.
Referenced by ilObjUserAccess\canBeDelivered().
|
static |
Definition at line 219 of file class.ilWACPath.php.
ilWACPath::getModuleIdentifier | ( | ) |
Definition at line 598 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::getModulePath | ( | ) |
ilWACPath::getModuleType | ( | ) |
Definition at line 582 of file class.ilWACPath.php.
References $module_type.
Referenced by ilWACSecurePath\returnDbTableName().
ilWACPath::getOriginalRequest | ( | ) |
ilWACPath::getParameters | ( | ) |
Definition at line 187 of file class.ilWACPath.php.
References $parameters.
Referenced by handleParameters().
ilWACPath::getPath | ( | ) |
Definition at line 486 of file class.ilWACPath.php.
References $path.
Referenced by ilObjLearningModuleAccess\_getCommands(), ilObjMediaObjectAccess\canBeDelivered(), ilObjFileAccess\canBeDelivered(), ilObjBlogAccess\canBeDelivered(), ilObjChatroomAccess\canBeDelivered(), ilObjPollAccess\canBeDelivered(), and ilPortfolioAccessHandler\canBeDelivered().
ilWACPath::getPathWithoutQuery | ( | ) |
Definition at line 307 of file class.ilWACPath.php.
References $path_without_query.
Referenced by fileExists(), and getDirName().
ilWACPath::getPrefix | ( | ) |
ilWACPath::getQuery | ( | ) |
ilWACPath::getSecurePath | ( | ) |
ilWACPath::getSecurePathId | ( | ) |
Definition at line 470 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 235 of file class.ilWACPath.php.
|
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().
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().
ilWACPath::isImage | ( | ) |
Definition at line 323 of file class.ilWACPath.php.
References getSuffix().
ilWACPath::isInSecFolder | ( | ) |
ilWACPath::isStreamable | ( | ) |
Definition at line 347 of file class.ilWACPath.php.
References isAudio(), and isVideo().
ilWACPath::isVideo | ( | ) |
Definition at line 363 of file class.ilWACPath.php.
References getSuffix().
Referenced by isStreamable().
ilWACPath::setAppendix | ( | $appendix | ) |
string | $appendix |
Definition at line 275 of file class.ilWACPath.php.
References $appendix.
Referenced by __construct().
|
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().
ilWACPath::setFileName | ( | $file_name | ) |
string | $file_name |
Definition at line 526 of file class.ilWACPath.php.
References $file_name.
Referenced by __construct().
|
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().
ilWACPath::setModuleIdentifier | ( | $module_identifier | ) |
string | $module_identifier |
Definition at line 606 of file class.ilWACPath.php.
References $module_identifier.
Referenced by __construct().
ilWACPath::setModulePath | ( | $module_path | ) |
string | $module_path |
Definition at line 291 of file class.ilWACPath.php.
References $module_path.
Referenced by __construct().
ilWACPath::setModuleType | ( | $module_type | ) |
string | $module_type |
Definition at line 590 of file class.ilWACPath.php.
References $module_type.
Referenced by __construct().
ilWACPath::setOriginalRequest | ( | $original_request | ) |
string | $original_request |
Definition at line 542 of file class.ilWACPath.php.
References $original_request.
Referenced by __construct().
ilWACPath::setParameters | ( | $parameters | ) |
array | $parameters |
Definition at line 195 of file class.ilWACPath.php.
References $parameters.
Referenced by __construct().
ilWACPath::setPath | ( | $path | ) |
string | $path |
Definition at line 494 of file class.ilWACPath.php.
References $path.
Referenced by __construct().
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().
ilWACPath::setPrefix | ( | $prefix | ) |
string | $prefix |
Definition at line 259 of file class.ilWACPath.php.
References $prefix.
Referenced by __construct().
ilWACPath::setQuery | ( | $query | ) |
string | $query |
Definition at line 510 of file class.ilWACPath.php.
References $query.
Referenced by __construct().
ilWACPath::setSecurePath | ( | $secure_path | ) |
string | $secure_path |
Definition at line 558 of file class.ilWACPath.php.
References $secure_path.
Referenced by __construct().
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().
ilWACPath::setSuffix | ( | $suffix | ) |
string | $suffix |
Definition at line 339 of file class.ilWACPath.php.
References $suffix.
Referenced by __construct().
ilWACPath::setTimestamp | ( | $timestamp | ) |
$timestamp |
Definition at line 428 of file class.ilWACPath.php.
References $timestamp, and ilWACSignedPath\WAC_TIMESTAMP_ID.
Referenced by handleParameters().
ilWACPath::setToken | ( | $token | ) |
$token |
Definition at line 411 of file class.ilWACPath.php.
References $token, and ilWACSignedPath\WAC_TOKEN_ID.
Referenced by handleParameters().
ilWACPath::setTTL | ( | $ttl | ) |
int | $ttl |
Definition at line 445 of file class.ilWACPath.php.
References $ttl, and ilWACSignedPath\WAC_TTL_ID.
Referenced by handleParameters().
|
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 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 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 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.