filters/XincludeFilter.php
Package: phing\filtersApplies Xinclude parsing to incoming text.
- Implements
- \ChainableReader
- Parent(s)
-
\BaseParamFilterReader
<
\BaseFilterReader
<
\FilterReader
<
\Reader
- See
-
\FilterReader
- Author
-
Bill Karwin
- Version
- $Id: XincludeFilter.php 526 2009-08-11 12:11:17Z mrook $
Properties



bool
$resolveExternals= 'false'
Whether to resolve entities.
Default valuefalseDetails
- Type
- bool
- Since
- 2.4
Methods



chain(
\Reader $reader
)
:
\ReaderCreates a new XincludeFilter using the passed in
Reader for instantiation.
Parameters
| Name |
Type |
Description |
| $reader |
\Reader |
A Reader object providing the underlying stream. Must not be null.
|
Returns
| Type |
Description |
| \Reader |
A new filter based on this configuration, but filtering the specified reader |



process(
string $xml
)
:
voidTry to process the Xinclude transformation
Parameters
| Name |
Type |
Description |
| $xml |
string |
XML to process. |
Throws



read(
$len
=
null
)
:
stringReads stream, applies XSLT and returns resulting stream.
Parameters
| Name |
Type |
Description |
| $len |
|
|
Returns
| Type |
Description |
| string |
transformed buffer. |
Throws
| Exception |
Description |
| \BuildException |
- if XSLT support missing, if error in xslt processing |



setResolveExternals(
$resolveExternals
)
:
voidWhether to resolve entities.
Parameters
| Name |
Type |
Description |
| $resolveExternals |
|
|
Details
- Since
- 2.4