Stud.IP  4.2 Revision
MediaProxy Class Reference
Collaboration diagram for MediaProxy:
Collaboration graph

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.

Here is the call graph for this function:

◆ getMetaData()

getMetaData (   $url)

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

Returns
array meta data of resource or NULL (not cached)
Here is the call graph for this function:

◆ 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
Here is the call graph for this function:

Field Documentation

◆ GC_PROBABILITY

const GC_PROBABILITY = 2

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