PHP Класс Prado\Web\UI\WebControls\TXmlTransform

TXmlTransform uses the PHP's XSL extension to perform {@link http://www.w3.org/TR/xslt XSL transformations} using the {@link http://xmlsoft.org/XSLT/ libxslt library}. To associate an XML style sheet with TXmlTransform set the {@link setTransformPath TransformPath} property to the namespace or path to the style sheet or set the {@link setTransformContent TransformContent} property to the XML style sheet data as a string. To associate the XML data to be transformed set the {@link setDocumentPath DocumentPath} property to the namespace or path to the XML document or set the {@link setDocumentContent DocumentContent} property to the XML data as a string. To add additional parameters to the transformation process you can use the {@link getParameters Parameters} property.
С версии: 3.1
Автор: Knut Urdalen ([email protected])
Автор: Qiang Xue ([email protected])
Наследование: extends Prado\Web\UI\TControl
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Constructor
getDocumentContent ( ) : string
getDocumentPath ( ) : string
getParameters ( ) : TAttributeCollection Returns the list of parameters to be applied to the transform.
getTransformContent ( ) : string
getTransformPath ( ) : string
render ( $writer ) Performs XSL transformation and render the output.
setDocumentContent ( string $value )
setDocumentPath ( $value )
setTransformContent ( string $value )
setTransformPath ( $value )

Приватные методы

Метод Описание
getSourceXmlDocument ( )
getTransformXmlDocument ( )

Описание методов

__construct() публичный Метод

Initializes the TXmlTransform object and ensure that the XSL extension is available
public __construct ( )

getDocumentContent() публичный Метод

public getDocumentContent ( ) : string
Результат string XML data

getDocumentPath() публичный Метод

public getDocumentPath ( ) : string
Результат string The path to the XML document. It must be in namespace format.

getParameters() публичный Метод

Returns the list of parameters to be applied to the transform.
public getParameters ( ) : TAttributeCollection
Результат Prado\Collections\TAttributeCollection the list of custom parameters

getTransformContent() публичный Метод

public getTransformContent ( ) : string
Результат string XML style sheet as string

getTransformPath() публичный Метод

public getTransformPath ( ) : string
Результат string The path to the XML style sheet.

render() публичный Метод

Performs XSL transformation and render the output.
public render ( $writer )

setDocumentContent() публичный Метод

public setDocumentContent ( string $value )
$value string XML data. If not empty, it takes precedence over {@link setDocumentPath DocumentPath}.

setDocumentPath() публичный Метод

public setDocumentPath ( $value )

setTransformContent() публичный Метод

public setTransformContent ( string $value )
$value string XML style sheet as string

setTransformPath() публичный Метод

public setTransformPath ( $value )