classes/phing/filters/TidyFilter.php
\TidyFilter
This filter uses the bundled-with-PHP Tidy extension to filter input.
<
p> Example:<br/>
- Extends from
- \BaseParamFilterReader
- Implements
- \ChainableReader
- author
- Hans Lellelid
- copyright
- © 2003 seasonfive. All rights reserved
- package
- phing.filters
- version
- $Revision: 552 $ $Date: 2009-08-29 14:18:13 +0200 (Sat, 29 Aug 2009) $
Properties
Methods

_initialize(
)
:
Initializes any parameters (e.g. config options).
This method is only called when this filter is used through a

chain(
\reader $reader
)
:
\aCreates a new TidyFilter using the passed in Reader for instantiation.
| Name | Type | Description |
|---|---|---|
| $reader | \reader | A Reader object providing the underlying stream. Must not be |
| Type | Description |
|---|---|
| \a |

createConfig(
)
:
\ParameterAdds a element (which is a Parameter).
| Type | Description |
|---|---|
| \Parameter |

getDistilledConfig(
)
:
arrayConverts the Parameter objects being used to store configuration into a simle assoc array.
| Type | Description |
|---|---|
| array |

read(
$len
=
null
)
:
\theReads input and returns Tidy-filtered output.
| Name | Type | Description |
|---|---|---|
| $len |
| Type | Description |
|---|---|
| \the |
- throws
- if the underlying stream throws an IOException during reading

setConfigParameters(
array $params
)
:
Sets the config params.
| Name | Type | Description |
|---|---|---|
| $params | array | Parameter[] |
- see
- \chain()