PHP Class TidyFilter, symfony-1.4

Example:


  
  

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

createConfig() public méthode

Adds a element (which is a Parameter).
public createConfig ( ) : Parameter
Résultat Parameter

read() public méthode

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

setConfigParameters() public méthode

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

setEncoding() public méthode

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