PHP Class Tollwerk\Squeezr

The core functionality for all squeezr engines basically deals with responding the correct file and header data.
Since: 1.0b
Author: Joschi Kuphal ([email protected])
显示文件 Open project: jkphl/squeezr

Protected Methods

Method Description
_addErrorHeader ( string $error, integer $errorNumber ) : void Add a HTTP error header
_sendFile ( string $src, string $mime, boolean $cache = true ) : void Send a file along with it's appropriate headers

Private Methods

Method Description
_calculateFileETag ( string $src ) : string Calculate the ETag of a file

Method Details

_addErrorHeader() protected method

Add a HTTP error header
protected _addErrorHeader ( string $error, integer $errorNumber ) : void
$error string Error message
$errorNumber integer Error number
return void

_sendFile() protected method

Send a file along with it's appropriate headers
protected _sendFile ( string $src, string $mime, boolean $cache = true ) : void
$src string File path
$mime string MIME type
$cache boolean Optional: The client browser should cache the file
return void