ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilWACPath Class Reference

Class ilWACPath. More...

+ 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
 

Detailed Description

Class ilWACPath.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
1.0.0

Definition at line 9 of file class.ilWACPath.php.

Constructor & Destructor Documentation

◆ __construct()

ilWACPath::__construct (   $path)

ilWACPath constructor.

Parameters
string$path

Definition at line 130 of file class.ilWACPath.php.

130 {
132 $re = '/' . self::REGEX . '/';
133 preg_match($re, $path, $result);
134
135 foreach ($result as $k => $v) {
136 if (is_numeric($k)) {
137 unset($result[$k]);
138 }
139 }
140
141 $this->setPrefix($result['prefix']);
142 $this->setClient($result['client']);
143 $this->setAppendix($result['appendix']);
144 $this->setModuleIdentifier(strstr($result['module_identifier'], "/", true));
145 $this->setModuleType($result['module_type']);
146 if ($this->getModuleIdentifier()) {
147 $this->setModulePath('.' . strstr($result['module_path'], $this->getModuleIdentifier(), true));
148 }else {
149 $this->setModulePath('.' . $result['module_path']);
150 }
151 $this->setInSecFolder($result['sec'] == 'sec/');
152 $this->setPathWithoutQuery('.' . $result['path_without_query']);
153 $this->setPath('.' . $result['path']);
154 $this->setSecurePath('.' . $result['secure_path_id']);
155 $this->setSecurePathId($result['module_type']);
156 // Pathinfo
157 $parts = parse_url($path);
158 $this->setFileName(basename($parts['path']));
159 if (isset($parts['query'])) {
160 $parts_query = $parts['query'];
161 $this->setQuery($parts_query);
162 parse_str($parts_query, $query);
163 $this->setParameters($query);
164 }
165 $this->setSuffix(pathinfo($parts['path'], PATHINFO_EXTENSION));
166 $this->handleParameters();
167 }
$result
setAppendix($appendix)
setOriginalRequest($original_request)
setSecurePathId($secure_path_id)
setParameters($parameters)
setClient($client)
setQuery($query)
setModuleIdentifier($module_identifier)
setModulePath($module_path)
setModuleType($module_type)
setInSecFolder($in_sec_folder)
setSuffix($suffix)
setSecurePath($secure_path)
setFileName($file_name)
setPrefix($prefix)
setPathWithoutQuery($path_without_query)

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:

Member Function Documentation

◆ fileExists()

ilWACPath::fileExists ( )
Returns
bool

Definition at line 371 of file class.ilWACPath.php.

371 {
372 return is_file($this->getPathWithoutQuery());
373 }

References getPathWithoutQuery().

+ Here is the call graph for this function:

◆ getAppendix()

ilWACPath::getAppendix ( )
Returns
string

Definition at line 267 of file class.ilWACPath.php.

267 {
268 return $this->appendix;
269 }

References $appendix.

◆ getAudioSuffixes()

static ilWACPath::getAudioSuffixes ( )
static
Returns
array

Definition at line 203 of file class.ilWACPath.php.

203 {
205 }
static $audio_suffixes

References $audio_suffixes.

◆ getClient()

ilWACPath::getClient ( )
Returns
string

Definition at line 454 of file class.ilWACPath.php.

454 {
455 return $this->client;
456 }

References $client.

◆ getDirName()

ilWACPath::getDirName ( )
Returns
string

Definition at line 299 of file class.ilWACPath.php.

299 {
300 return dirname($this->getPathWithoutQuery());
301 }

References getPathWithoutQuery().

+ Here is the call graph for this function:

◆ getFileName()

ilWACPath::getFileName ( )
Returns
string

Definition at line 518 of file class.ilWACPath.php.

518 {
519 return $this->file_name;
520 }

References $file_name.

Referenced by ilObjUserAccess\canBeDelivered().

+ Here is the caller graph for this function:

◆ getImageSuffixes()

static ilWACPath::getImageSuffixes ( )
static
Returns
array

Definition at line 219 of file class.ilWACPath.php.

219 {
221 }
static $image_suffixes

References $image_suffixes.

◆ getModuleIdentifier()

ilWACPath::getModuleIdentifier ( )
Returns
string

Definition at line 598 of file class.ilWACPath.php.

598 {
600 }

References $module_identifier.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getModulePath()

ilWACPath::getModulePath ( )
Returns
string

Definition at line 283 of file class.ilWACPath.php.

283 {
284 return $this->module_path;
285 }

References $module_path.

◆ getModuleType()

ilWACPath::getModuleType ( )
Returns
string

Definition at line 582 of file class.ilWACPath.php.

582 {
583 return $this->module_type;
584 }

References $module_type.

◆ getOriginalRequest()

ilWACPath::getOriginalRequest ( )
Returns
string

Definition at line 534 of file class.ilWACPath.php.

534 {
536 }

References $original_request.

◆ getParameters()

ilWACPath::getParameters ( )
Returns
array

Definition at line 187 of file class.ilWACPath.php.

187 {
188 return $this->parameters;
189 }

References $parameters.

Referenced by handleParameters().

+ Here is the caller graph for this function:

◆ getPath()

ilWACPath::getPath ( )

◆ getPathWithoutQuery()

ilWACPath::getPathWithoutQuery ( )
Returns
string

Definition at line 307 of file class.ilWACPath.php.

307 {
309 }

References $path_without_query.

Referenced by fileExists(), and getDirName().

+ Here is the caller graph for this function:

◆ getPrefix()

ilWACPath::getPrefix ( )
Returns
string

Definition at line 251 of file class.ilWACPath.php.

251 {
252 return $this->prefix;
253 }

References $prefix.

◆ getQuery()

ilWACPath::getQuery ( )
Returns
string

Definition at line 502 of file class.ilWACPath.php.

502 {
503 return $this->query;
504 }

References $query.

◆ getSecurePath()

ilWACPath::getSecurePath ( )
Returns
string

Definition at line 550 of file class.ilWACPath.php.

550 {
551 return $this->secure_path;
552 }

References $secure_path.

◆ getSecurePathId()

ilWACPath::getSecurePathId ( )
Returns
string

Definition at line 470 of file class.ilWACPath.php.

470 {
472 }

References $secure_path_id.

Referenced by ilObjFileAccess\canBeDelivered().

+ Here is the caller graph for this function:

◆ getSuffix()

ilWACPath::getSuffix ( )
Returns
string

Definition at line 331 of file class.ilWACPath.php.

331 {
332 return $this->suffix;
333 }

References $suffix.

Referenced by isAudio(), isImage(), and isVideo().

+ Here is the caller graph for this function:

◆ getTimestamp()

ilWACPath::getTimestamp ( )
Returns
int

Definition at line 420 of file class.ilWACPath.php.

420 {
421 return $this->timestamp;
422 }

References $timestamp.

◆ getToken()

ilWACPath::getToken ( )
Returns
string

Definition at line 403 of file class.ilWACPath.php.

403 {
404 return $this->token;
405 }

References $token.

◆ getTTL()

ilWACPath::getTTL ( )
Returns
int

Definition at line 437 of file class.ilWACPath.php.

437 {
438 return $this->ttl;
439 }

References $ttl.

◆ getVideoSuffixes()

static ilWACPath::getVideoSuffixes ( )
static
Returns
array

Definition at line 235 of file class.ilWACPath.php.

235 {
237 }
static $video_suffixes

References $video_suffixes.

◆ handleParameters()

ilWACPath::handleParameters ( )
protected

Definition at line 170 of file class.ilWACPath.php.

170 {
171 $param = $this->getParameters();
172 if (isset($param[ilWACSignedPath::WAC_TOKEN_ID])) {
174 }
175 if (isset($param[ilWACSignedPath::WAC_TIMESTAMP_ID])) {
177 }
178 if (isset($param[ilWACSignedPath::WAC_TTL_ID])) {
179 $this->setTTL($param[ilWACSignedPath::WAC_TTL_ID]);
180 }
181 }
setToken($token)
setTimestamp($timestamp)

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:

◆ hasTimestamp()

ilWACPath::hasTimestamp ( )
Returns
bool

Definition at line 387 of file class.ilWACPath.php.

387 {
388 return ($this->timestamp != 0);
389 }

◆ hasToken()

ilWACPath::hasToken ( )
Returns
bool

Definition at line 379 of file class.ilWACPath.php.

379 {
380 return ($this->token != '');
381 }

◆ hasTTL()

ilWACPath::hasTTL ( )
Returns
bool

Definition at line 395 of file class.ilWACPath.php.

395 {
396 return ($this->ttl != 0);
397 }

◆ isAudio()

ilWACPath::isAudio ( )
Returns
bool

Definition at line 355 of file class.ilWACPath.php.

355 {
356 return in_array(strtolower($this->getSuffix()), self::$audio_suffixes);
357 }

References getSuffix().

Referenced by isStreamable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isImage()

ilWACPath::isImage ( )
Returns
bool

Definition at line 323 of file class.ilWACPath.php.

323 {
324 return in_array(strtolower($this->getSuffix()), self::$image_suffixes);
325 }

References getSuffix().

+ Here is the call graph for this function:

◆ isInSecFolder()

ilWACPath::isInSecFolder ( )
Returns
boolean

Definition at line 566 of file class.ilWACPath.php.

566 {
568 }

References $in_sec_folder.

◆ isStreamable()

ilWACPath::isStreamable ( )
Returns
bool

Definition at line 347 of file class.ilWACPath.php.

347 {
348 return ($this->isAudio() || $this->isVideo());
349 }

References isAudio(), and isVideo().

+ Here is the call graph for this function:

◆ isVideo()

ilWACPath::isVideo ( )
Returns
bool

Definition at line 363 of file class.ilWACPath.php.

363 {
364 return in_array(strtolower($this->getSuffix()), self::$video_suffixes);
365 }

References getSuffix().

Referenced by isStreamable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAppendix()

ilWACPath::setAppendix (   $appendix)
Parameters
string$appendix

Definition at line 275 of file class.ilWACPath.php.

275 {
276 $this->appendix = $appendix;
277 }

References $appendix.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setAudioSuffixes()

static ilWACPath::setAudioSuffixes (   $audio_suffixes)
static
Parameters
array$audio_suffixes

Definition at line 211 of file class.ilWACPath.php.

211 {
212 self::$audio_suffixes = $audio_suffixes;
213 }

References $audio_suffixes.

◆ setClient()

ilWACPath::setClient (   $client)
Parameters
string$client

Definition at line 462 of file class.ilWACPath.php.

462 {
463 $this->client = $client;
464 }

References $client.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setFileName()

ilWACPath::setFileName (   $file_name)
Parameters
string$file_name

Definition at line 526 of file class.ilWACPath.php.

526 {
527 $this->file_name = $file_name;
528 }

References $file_name.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setImageSuffixes()

static ilWACPath::setImageSuffixes (   $image_suffixes)
static
Parameters
array$image_suffixes

Definition at line 227 of file class.ilWACPath.php.

227 {
228 self::$image_suffixes = $image_suffixes;
229 }

References $image_suffixes.

◆ setInSecFolder()

ilWACPath::setInSecFolder (   $in_sec_folder)
Parameters
boolean$in_sec_folder

Definition at line 574 of file class.ilWACPath.php.

574 {
575 $this->in_sec_folder = $in_sec_folder;
576 }

References $in_sec_folder.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setModuleIdentifier()

ilWACPath::setModuleIdentifier (   $module_identifier)
Parameters
string$module_identifier

Definition at line 606 of file class.ilWACPath.php.

606 {
607 $this->module_identifier = $module_identifier;
608 }

References $module_identifier.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setModulePath()

ilWACPath::setModulePath (   $module_path)
Parameters
string$module_path

Definition at line 291 of file class.ilWACPath.php.

291 {
292 $this->module_path = $module_path;
293 }

References $module_path.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setModuleType()

ilWACPath::setModuleType (   $module_type)
Parameters
string$module_type

Definition at line 590 of file class.ilWACPath.php.

590 {
591 $this->module_type = $module_type;
592 }

References $module_type.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setOriginalRequest()

ilWACPath::setOriginalRequest (   $original_request)
Parameters
string$original_request

Definition at line 542 of file class.ilWACPath.php.

542 {
543 $this->original_request = $original_request;
544 }

References $original_request.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setParameters()

ilWACPath::setParameters (   $parameters)
Parameters
array$parameters

Definition at line 195 of file class.ilWACPath.php.

195 {
196 $this->parameters = $parameters;
197 }

References $parameters.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setPath()

ilWACPath::setPath (   $path)
Parameters
string$path

Definition at line 494 of file class.ilWACPath.php.

494 {
495 $this->path = $path;
496 }

References $path.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setPathWithoutQuery()

ilWACPath::setPathWithoutQuery (   $path_without_query)
Parameters
string$path_without_query

Definition at line 315 of file class.ilWACPath.php.

315 {
316 $this->path_without_query = $path_without_query;
317 }

References $path_without_query.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setPrefix()

ilWACPath::setPrefix (   $prefix)
Parameters
string$prefix

Definition at line 259 of file class.ilWACPath.php.

259 {
260 $this->prefix = $prefix;
261 }

References $prefix.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setQuery()

ilWACPath::setQuery (   $query)
Parameters
string$query

Definition at line 510 of file class.ilWACPath.php.

510 {
511 $this->query = $query;
512 }

References $query.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setSecurePath()

ilWACPath::setSecurePath (   $secure_path)
Parameters
string$secure_path

Definition at line 558 of file class.ilWACPath.php.

558 {
559 $this->secure_path = $secure_path;
560 }

References $secure_path.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setSecurePathId()

ilWACPath::setSecurePathId (   $secure_path_id)
Parameters
string$secure_path_id

Definition at line 478 of file class.ilWACPath.php.

478 {
479 $this->secure_path_id = $secure_path_id;
480 }

References $secure_path_id.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setSuffix()

ilWACPath::setSuffix (   $suffix)
Parameters
string$suffix

Definition at line 339 of file class.ilWACPath.php.

339 {
340 $this->suffix = $suffix;
341 }

References $suffix.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setTimestamp()

ilWACPath::setTimestamp (   $timestamp)
Parameters
$timestamp

Definition at line 428 of file class.ilWACPath.php.

428 {
430 $this->timestamp = $timestamp;
431 }

References $timestamp, and ilWACSignedPath\WAC_TIMESTAMP_ID.

Referenced by handleParameters().

+ Here is the caller graph for this function:

◆ setToken()

ilWACPath::setToken (   $token)
Parameters
$token

Definition at line 411 of file class.ilWACPath.php.

411 {
412 $this->parameters[ilWACSignedPath::WAC_TOKEN_ID] = $token;
413 $this->token = $token;
414 }

References $token, and ilWACSignedPath\WAC_TOKEN_ID.

Referenced by handleParameters().

+ Here is the caller graph for this function:

◆ setTTL()

ilWACPath::setTTL (   $ttl)
Parameters
int$ttl

Definition at line 445 of file class.ilWACPath.php.

445 {
446 $this->parameters[ilWACSignedPath::WAC_TTL_ID] = $ttl;
447 $this->ttl = $ttl;
448 }

References $ttl, and ilWACSignedPath\WAC_TTL_ID.

Referenced by handleParameters().

+ Here is the caller graph for this function:

◆ setVideoSuffixes()

static ilWACPath::setVideoSuffixes (   $video_suffixes)
static
Parameters
array$video_suffixes

Definition at line 243 of file class.ilWACPath.php.

243 {
244 self::$video_suffixes = $video_suffixes;
245 }

References $video_suffixes.

Field Documentation

◆ $appendix

ilWACPath::$appendix = ''
protected

Definition at line 102 of file class.ilWACPath.php.

Referenced by getAppendix(), and setAppendix().

◆ $audio_suffixes

ilWACPath::$audio_suffixes
staticprotected
Initial value:
= array(
'mp3',
'aiff',
'aif',
'm4a',
'wav',
)

Definition at line 40 of file class.ilWACPath.php.

Referenced by getAudioSuffixes(), and setAudioSuffixes().

◆ $client

ilWACPath::$client = ''
protected

Definition at line 50 of file class.ilWACPath.php.

Referenced by getClient(), and setClient().

◆ $file_name

ilWACPath::$file_name = ''
protected

Definition at line 86 of file class.ilWACPath.php.

Referenced by getFileName(), and setFileName().

◆ $image_suffixes

ilWACPath::$image_suffixes
staticprotected
Initial value:
= array(
'png',
'jpg',
'jpeg',
'gif',
'svg',
)

Definition at line 20 of file class.ilWACPath.php.

Referenced by getImageSuffixes(), and setImageSuffixes().

◆ $in_sec_folder

ilWACPath::$in_sec_folder = false
protected

Definition at line 58 of file class.ilWACPath.php.

Referenced by isInSecFolder(), and setInSecFolder().

◆ $module_identifier

ilWACPath::$module_identifier = ''
protected

Definition at line 118 of file class.ilWACPath.php.

Referenced by getModuleIdentifier(), and setModuleIdentifier().

◆ $module_path

ilWACPath::$module_path = ''
protected

Definition at line 106 of file class.ilWACPath.php.

Referenced by getModulePath(), and setModulePath().

◆ $module_type

ilWACPath::$module_type = ''
protected

Definition at line 114 of file class.ilWACPath.php.

Referenced by getModuleType(), and setModuleType().

◆ $original_request

ilWACPath::$original_request = ''
protected

Definition at line 82 of file class.ilWACPath.php.

Referenced by getOriginalRequest(), and setOriginalRequest().

◆ $parameters

ilWACPath::$parameters = array()
protected

Definition at line 54 of file class.ilWACPath.php.

Referenced by getParameters(), and setParameters().

◆ $path

ilWACPath::$path = ''
protected

Definition at line 110 of file class.ilWACPath.php.

Referenced by __construct(), getPath(), and setPath().

◆ $path_without_query

ilWACPath::$path_without_query = ''
protected

Definition at line 122 of file class.ilWACPath.php.

Referenced by getPathWithoutQuery(), and setPathWithoutQuery().

◆ $prefix

ilWACPath::$prefix = ''
protected

Definition at line 98 of file class.ilWACPath.php.

Referenced by getPrefix(), and setPrefix().

◆ $query

ilWACPath::$query = ''
protected

Definition at line 90 of file class.ilWACPath.php.

Referenced by __construct(), getQuery(), and setQuery().

◆ $secure_path

ilWACPath::$secure_path = ''
protected

Definition at line 74 of file class.ilWACPath.php.

Referenced by getSecurePath(), and setSecurePath().

◆ $secure_path_id

ilWACPath::$secure_path_id = ''
protected

Definition at line 78 of file class.ilWACPath.php.

Referenced by getSecurePathId(), and setSecurePathId().

◆ $suffix

ilWACPath::$suffix = ''
protected

Definition at line 94 of file class.ilWACPath.php.

Referenced by getSuffix(), and setSuffix().

◆ $timestamp

ilWACPath::$timestamp = 0
protected

Definition at line 66 of file class.ilWACPath.php.

Referenced by getTimestamp(), and setTimestamp().

◆ $token

ilWACPath::$token = ''
protected

Definition at line 62 of file class.ilWACPath.php.

Referenced by getToken(), and setToken().

◆ $ttl

ilWACPath::$ttl = 0
protected

Definition at line 70 of file class.ilWACPath.php.

Referenced by getTTL(), and setTTL().

◆ $video_suffixes

ilWACPath::$video_suffixes
staticprotected
Initial value:
= array(
'mp4',
'm4v',
'mov',
'wmv',
'webm',
)

Definition at line 30 of file class.ilWACPath.php.

Referenced by getVideoSuffixes(), and setVideoSuffixes().

◆ DIR_DATA

const ilWACPath::DIR_DATA = "data"

Definition at line 11 of file class.ilWACPath.php.

◆ DIR_SEC

const ilWACPath::DIR_SEC = "sec"

Definition at line 12 of file class.ilWACPath.php.

◆ REGEX

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.


The documentation for this class was generated from the following file: