Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
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 ( )

Initalize a new MediaProxy instance.

Here is the call graph for this function:

Member Function Documentation

garbageCollect ( )

Remove old files from the media cache.

Here is the call graph for this function:

Here is the caller graph for this function:

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:

Here is the caller graph for this function:

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

const GC_PROBABILITY = 2

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