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
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__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 )