FastFileResponder Class Info:

Class Declaration:

class FastFileResponder

File name:
app/fast_file_responder.php
Description:

This class enables a fast file response without the framework stack of CakePHP. It checks the session and the URL and returns a valid file */

Properties:

Show/Hide parent properties
  • items

  • sessionCookie

    Should be same as in app/config/core.php Session.cookie */

  • sessionKey

checkClientCache

top

Evaluates the client file cache and response if the client has still a valid file

Parameters:
  • $filename required

Method defined in:
app/fast_file_responder.php on line 117

close

top

Closes the session */

Method defined in:
app/fast_file_responder.php on line 166

__construct

top

Method defined in:
app/fast_file_responder.php on line 32

deleteExpiredItems

top

Deletes expired itemes from the session list */

Method defined in:
app/fast_file_responder.php on line 50

exists

top

Evaluates if a valid cache file exists */

Method defined in:
app/fast_file_responder.php on line 139

getFilename

top

Returns the file of the media request */

Method defined in:
app/fast_file_responder.php on line 83

getItemKey

top

Extracts the item key from the url and returns it. Returns false if no key could be found */

Method defined in:
app/fast_file_responder.php on line 71

getRequestHeaders

top

Returns an array of request headers */

Method defined in:
app/fast_file_responder.php on line 96

log

top

Simple log function for debug purpos */

Parameters:
  • $msg required

Method defined in:
app/fast_file_responder.php on line 63

send

top

Sends the cache file if it exists and exit. If it returns an error occured */

Method defined in:
app/fast_file_responder.php on line 145

sendResponseHeaders

top

Parameters:
  • $file required

Method defined in:
app/fast_file_responder.php on line 129

startSession

top

Starts the session if the session sessionCookie is set */

Method defined in:
app/fast_file_responder.php on line 37