PHP Class TidyFilter, symfony-1.4

Example:


  
  

Author: Hans Lellelid ([email protected])
Inheritance: extends BaseParamFilterReader, implements ChainableReader
Mostrar archivo Open project: vjousse/symfony-1.4 Class Usage Examples

Public Methods

Method Description
chain ( Reader $reader ) : a Creates a new TidyFilter using the passed in Reader for instantiation.
createConfig ( ) : Parameter Adds a element (which is a Parameter).
read ( $len = null ) : the Reads input and returns Tidy-filtered output.
setConfigParameters ( $params ) Sets the config params.
setEncoding ( string $v ) Set the encoding for resulting (X)HTML document.

Private Methods

Method Description
_initialize ( ) Initializes any parameters (e.g. config options).
getDistilledConfig ( ) : array Converts the Parameter objects being used to store configuration into a simle assoc array.

Method Details

chain() public method

Creates a new TidyFilter using the passed in Reader for instantiation.
public chain ( Reader $reader ) : a
$reader Reader
return a new filter based on this configuration, but filtering the specified reader

createConfig() public method

Adds a element (which is a Parameter).
public createConfig ( ) : Parameter
return Parameter

read() public method

Reads input and returns Tidy-filtered output.
public read ( $len = null ) : the
return the resulting stream, or -1 if the end of the resulting stream has been reached

setConfigParameters() public method

Sets the config params.
See also: chain()
public setConfigParameters ( $params )

setEncoding() public method

Set the encoding for resulting (X)HTML document.
public setEncoding ( string $v )
$v string