filters/XincludeFilter.php

Show: inherited
Table of Contents

\XincludeFilter

Package: phing\filters

Applies Xinclude parsing to incoming text.

Uses PHP DOM XML support

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

Propertyprivate  $basedir= 'null'
Default valuenullDetails
Type
n/a
Propertyprivatebool  $processed= 'false'

Default valuefalseDetails
Type
bool
Propertyprivatebool  $resolveExternals= 'false'

Whether to resolve entities.

Default valuefalseDetails
Type
bool
Since
2.4  

Methods

methodpublic__construct( ) : void

methodpublicchain( \Reader $reader ) : \Reader

Creates 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
methodpublicclose( ) : void

methodpubliceof( ) : void

methodpublicgetBasedir( ) : void

methodpublicgetInitialized( ) : void

methodpublicgetParameters( ) : void

methodpublicgetProject( ) : void

methodpublicgetResolveExternals( ) : bool

Returns
Type Description
bool
Details
Since
2.4  
methodpublicgetResource( ) : void

methodpubliclog( ) : void

methodpublicmark( ) : void

methodpublicmarkSupported( ) : void

methodprotectedprocess( string $xml ) : void

Try to process the Xinclude transformation

Parameters
Name Type Description
$xml string

XML to process.

Throws
Exception Description
\BuildException On errors
methodpublicread(  $len = null ) : string

Reads 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
methodpublicreadLine( ) : void

methodpublicready( ) : void

methodpublicreset( ) : void

methodpublicsetBasedir(  $dir ) : void

Parameters
Name Type Description
$dir
methodpublicsetInitialized( ) : void

methodpublicsetParameters( ) : void

methodpublicsetProject( ) : void

methodpublicsetReader( ) : void

methodpublicsetResolveExternals(  $resolveExternals ) : void

Whether to resolve entities.

Parameters
Name Type Description
$resolveExternals
Details
Since
2.4  
methodpublicskip( ) : void

Documentation was generated by DocBlox 0.17.1.