Stud.IP  5.4
MediaProxy Class Reference

Public Member Functions

 __construct ()
 
 getMetaData ($url)
 
 readURL ($url, $modified_since=NULL)
 
 garbageCollect ()
 

Data Fields

const GC_PROBABILITY = 2
 

Detailed Description

Model class for the Stud.IP media proxy.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Initalize a new MediaProxy instance.

Member Function Documentation

◆ garbageCollect()

garbageCollect ( )

Remove old files from the media cache.

◆ getMetaData()

getMetaData (   $url)

Retrieve meta data about a (possibly) cached media resource.

Returns
array meta data of resource or NULL (not cached)

◆ readURL()

readURL (   $url,
  $modified_since = NULL 
)

Read URL and send data to the browser (similar to readfile()). Will cache the sent data if possible. An optional timestamp can be specified if the browser supplied an If-Modified-Since header.

Parameters
string$urlURL to send
int$modified_sincetest if resource is modified

Field Documentation

◆ GC_PROBABILITY

const GC_PROBABILITY = 2

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