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.

References $path, $query, $result, getModuleIdentifier(), handleParameters(), setAppendix(), setClient(), setFileName(), setInSecFolder(), setModuleIdentifier(), setModulePath(), setModuleType(), setOriginalRequest(), setParameters(), setPath(), setPathWithoutQuery(), setPrefix(), setQuery(), setSecurePath(), setSecurePathId(), and setSuffix().

130  {
131  $this->setOriginalRequest($path);
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  }
setPathWithoutQuery($path_without_query)
setQuery($query)
$result
setModulePath($module_path)
setClient($client)
setModuleType($module_type)
setSuffix($suffix)
setSecurePath($secure_path)
setModuleIdentifier($module_identifier)
setPrefix($prefix)
setParameters($parameters)
setSecurePathId($secure_path_id)
setFileName($file_name)
setAppendix($appendix)
setOriginalRequest($original_request)
setInSecFolder($in_sec_folder)
+ 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.

References getPathWithoutQuery().

371  {
372  return is_file($this->getPathWithoutQuery());
373  }
+ Here is the call graph for this function:

◆ getAppendix()

ilWACPath::getAppendix ( )
Returns
string

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

References $appendix.

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

◆ getAudioSuffixes()

static ilWACPath::getAudioSuffixes ( )
static
Returns
array

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

203  {
204  return self::$audio_suffixes;
205  }

◆ getClient()

ilWACPath::getClient ( )
Returns
string

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

References $client.

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

◆ getDirName()

ilWACPath::getDirName ( )
Returns
string

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

References getPathWithoutQuery().

299  {
300  return dirname($this->getPathWithoutQuery());
301  }
+ Here is the call graph for this function:

◆ getFileName()

ilWACPath::getFileName ( )
Returns
string

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

References $file_name.

Referenced by ilObjUserAccess\canBeDelivered().

518  {
519  return $this->file_name;
520  }
+ 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  {
220  return self::$image_suffixes;
221  }

◆ getModuleIdentifier()

ilWACPath::getModuleIdentifier ( )
Returns
string

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

References $module_identifier.

Referenced by __construct().

598  {
600  }
+ Here is the caller graph for this function:

◆ getModulePath()

ilWACPath::getModulePath ( )
Returns
string

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

References $module_path.

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

◆ getModuleType()

ilWACPath::getModuleType ( )
Returns
string

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

References $module_type.

Referenced by ilWACSecurePath\returnDbTableName().

582  {
583  return $this->module_type;
584  }
+ Here is the caller graph for this function:

◆ getOriginalRequest()

ilWACPath::getOriginalRequest ( )
Returns
string

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

References $original_request.

534  {
536  }

◆ getParameters()

ilWACPath::getParameters ( )
Returns
array

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

References $parameters.

Referenced by handleParameters().

187  {
188  return $this->parameters;
189  }
+ Here is the caller graph for this function:

◆ getPath()

◆ getPathWithoutQuery()

ilWACPath::getPathWithoutQuery ( )
Returns
string

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

References $path_without_query.

Referenced by fileExists(), and getDirName().

307  {
309  }
+ Here is the caller graph for this function:

◆ getPrefix()

ilWACPath::getPrefix ( )
Returns
string

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

References $prefix.

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

◆ getQuery()

ilWACPath::getQuery ( )
Returns
string

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

References $query.

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

◆ getSecurePath()

ilWACPath::getSecurePath ( )
Returns
string

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

References $secure_path.

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

◆ getSecurePathId()

ilWACPath::getSecurePathId ( )
Returns
string

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

References $secure_path_id.

Referenced by ilObjFileAccess\canBeDelivered(), and ilWACSecurePath\returnDbTableName().

470  {
471  return $this->secure_path_id;
472  }
+ Here is the caller graph for this function:

◆ getSuffix()

ilWACPath::getSuffix ( )
Returns
string

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

References $suffix.

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

331  {
332  return $this->suffix;
333  }
+ Here is the caller graph for this function:

◆ getTimestamp()

ilWACPath::getTimestamp ( )
Returns
int

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

References $timestamp.

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

◆ getToken()

ilWACPath::getToken ( )
Returns
string

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

References $token.

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

◆ getTTL()

ilWACPath::getTTL ( )
Returns
int

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

References $ttl.

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

◆ getVideoSuffixes()

static ilWACPath::getVideoSuffixes ( )
static
Returns
array

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

235  {
236  return self::$video_suffixes;
237  }

◆ handleParameters()

ilWACPath::handleParameters ( )
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().

170  {
171  $param = $this->getParameters();
172  if (isset($param[ilWACSignedPath::WAC_TOKEN_ID])) {
173  $this->setToken($param[ilWACSignedPath::WAC_TOKEN_ID]);
174  }
175  if (isset($param[ilWACSignedPath::WAC_TIMESTAMP_ID])) {
176  $this->setTimestamp($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)
+ 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.

References getSuffix().

Referenced by isStreamable().

355  {
356  return in_array(strtolower($this->getSuffix()), self::$audio_suffixes);
357  }
+ 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.

References getSuffix().

323  {
324  return in_array(strtolower($this->getSuffix()), self::$image_suffixes);
325  }
+ Here is the call graph for this function:

◆ isInSecFolder()

ilWACPath::isInSecFolder ( )
Returns
boolean

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

References $in_sec_folder.

566  {
567  return $this->in_sec_folder;
568  }

◆ isStreamable()

ilWACPath::isStreamable ( )
Returns
bool

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

References isAudio(), and isVideo().

347  {
348  return ($this->isAudio() || $this->isVideo());
349  }
+ Here is the call graph for this function:

◆ isVideo()

ilWACPath::isVideo ( )
Returns
bool

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

References getSuffix().

Referenced by isStreamable().

363  {
364  return in_array(strtolower($this->getSuffix()), self::$video_suffixes);
365  }
+ 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.

References $appendix.

Referenced by __construct().

275  {
276  $this->appendix = $appendix;
277  }
+ 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.

References $audio_suffixes.

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

◆ setClient()

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

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

References $client.

Referenced by __construct().

462  {
463  $this->client = $client;
464  }
+ 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.

References $file_name.

Referenced by __construct().

526  {
527  $this->file_name = $file_name;
528  }
+ 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.

References $image_suffixes.

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

◆ setInSecFolder()

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

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

References $in_sec_folder.

Referenced by __construct().

574  {
575  $this->in_sec_folder = $in_sec_folder;
576  }
+ 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.

References $module_identifier.

Referenced by __construct().

606  {
607  $this->module_identifier = $module_identifier;
608  }
+ 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.

References $module_path.

Referenced by __construct().

291  {
292  $this->module_path = $module_path;
293  }
+ 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.

References $module_type.

Referenced by __construct().

590  {
591  $this->module_type = $module_type;
592  }
+ 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.

References $original_request.

Referenced by __construct().

542  {
543  $this->original_request = $original_request;
544  }
+ Here is the caller graph for this function:

◆ setParameters()

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

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

References $parameters.

Referenced by __construct().

195  {
196  $this->parameters = $parameters;
197  }
+ Here is the caller graph for this function:

◆ setPath()

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

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

References $path.

Referenced by __construct().

494  {
495  $this->path = $path;
496  }
+ 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.

References $path_without_query.

Referenced by __construct().

315  {
316  $this->path_without_query = $path_without_query;
317  }
+ Here is the caller graph for this function:

◆ setPrefix()

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

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

References $prefix.

Referenced by __construct().

259  {
260  $this->prefix = $prefix;
261  }
+ Here is the caller graph for this function:

◆ setQuery()

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

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

References $query.

Referenced by __construct().

510  {
511  $this->query = $query;
512  }
+ 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.

References $secure_path.

Referenced by __construct().

558  {
559  $this->secure_path = $secure_path;
560  }
+ 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.

References $secure_path_id.

Referenced by __construct().

478  {
479  $this->secure_path_id = $secure_path_id;
480  }
+ Here is the caller graph for this function:

◆ setSuffix()

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

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

References $suffix.

Referenced by __construct().

339  {
340  $this->suffix = $suffix;
341  }
+ Here is the caller graph for this function:

◆ setTimestamp()

ilWACPath::setTimestamp (   $timestamp)
Parameters
$timestamp

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

References $timestamp, and ilWACSignedPath\WAC_TIMESTAMP_ID.

Referenced by handleParameters().

428  {
429  $this->parameters[ilWACSignedPath::WAC_TIMESTAMP_ID] = $timestamp;
430  $this->timestamp = $timestamp;
431  }
+ Here is the caller graph for this function:

◆ setToken()

ilWACPath::setToken (   $token)
Parameters
$token

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

References $token, and ilWACSignedPath\WAC_TOKEN_ID.

Referenced by handleParameters().

411  {
412  $this->parameters[ilWACSignedPath::WAC_TOKEN_ID] = $token;
413  $this->token = $token;
414  }
+ Here is the caller graph for this function:

◆ setTTL()

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

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

References $ttl, and ilWACSignedPath\WAC_TTL_ID.

Referenced by handleParameters().

445  {
446  $this->parameters[ilWACSignedPath::WAC_TTL_ID] = $ttl;
447  $this->ttl = $ttl;
448  }
+ 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.

References $video_suffixes.

243  {
244  self::$video_suffixes = $video_suffixes;
245  }
static $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:
'mp3',
'aiff',
'aif',
'm4a',
'wav',
)

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

Referenced by 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:
'png',
'jpg',
'jpeg',
'gif',
'svg',
)

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

Referenced by 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:
'mp4',
'm4v',
'mov',
'wmv',
'webm',
)

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

Referenced by 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: