Class \Prado\Web\UI\WebControls\TXmlTransform
TXmlTransform uses the PHP's XSL extension to perform XSL transformations using the libxslt library.
To associate an XML style sheet with TXmlTransform set the \Prado\Web\UI\WebControls\setTransformPath property to the namespace or path to the style sheet or set the \Prado\Web\UI\WebControls\setTransformContent property to the XML style sheet data as a string.
To associate the XML data to be transformed set the \Prado\Web\UI\WebControls\setDocumentPath property to the namespace or path to the XML document or set the \Prado\Web\UI\WebControls\setDocumentContent property to the XML data as a string.
To add additional parameters to the transformation process you can use the \Prado\Web\UI\WebControls\getParameters property.
Class hierarchy
- \Prado\Web\UI\WebControls\TXmlTransform
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.1
public
|
__construct() : mixed
Constructor
Initializes the TXmlTransform object and ensure that the XSL extension is available |
public
|
|
public
|
|
public
|
getParameters() : TAttributeCollection
Returns the list of parameters to be applied to the transform.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
private
|
|
private
|
public
mixed
|
EXT_XML_FILE
|
'.xml'
|
public
mixed
|
EXT_XSL_FILE
|
'.xsl'
|