\patTemplate_OutputFilter_Gzip

patTemplate GZip output filter

$Id: Gzip.php 359 2005-02-18 19:01:54Z schst $

Checks the accept encoding of the browser and compresses the data before sending it to the client.

Summary

Methods
Properties
Constants
apply()
getName()
setParams()
getParam()
_clientSupportsGzip()
_gfc()
$_name
$_params
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_name

$_name : string

filter name

This has to be set in the final filter classes.

Type

string

$_params

$_params : array

module parameters

Type

array

Methods

apply()

apply(  $data) : string

compress the data

Parameters

$data

Returns

string —

compressed data

getName()

getName() : string

get the name of the module

Returns

string —

name of the module

setParams()

setParams(  $params,   $clear = false) 

sets parameters of the module

Parameters

$params
$clear

getParam()

getParam(  $name) : mixed

gets a parameter of the module

Parameters

$name

Returns

mixed —

value of the parameter

_clientSupportsGzip()

_clientSupportsGzip() : boolean

check, whether client supports compressed data

Returns

boolean

_gfc()

_gfc(integer  $value) : string

get value as hex-string

Parameters

integer $value

value to convert

Returns

string —

$string converted string