PHP 클래스 eZ\Publish\Core\FieldType\RichText\Converter\Xslt

상속: extends eZ\Publish\Core\FieldType\RichText\XmlBase, implements eZ\Publish\Core\FieldType\RichText\Converter
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$customStylesheets array Array of XSL stylesheets to add to the main one, grouped by priority.
$stylesheet string Path to stylesheet to use.

공개 메소드들

메소드 설명
__construct ( string $stylesheet, array $customStylesheets = [] ) Constructor.
convert ( DOMDocument $document ) : DOMDocument Performs conversion of the given $document using XSLT stylesheet.

보호된 메소드들

메소드 설명
getSortedCustomStylesheets ( ) : array Returns custom stylesheets to load, sorted.
getXSLTProcessor ( ) : XSLTProcessor Returns the XSLTProcessor to use to transform internal XML to HTML5.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $stylesheet, array $customStylesheets = [] )
$stylesheet string Stylesheet to use for conversion
$customStylesheets array Array of XSL stylesheets. Each entry consists in a hash having "path" and "priority" keys.

convert() 공개 메소드

Performs conversion of the given $document using XSLT stylesheet.
public convert ( DOMDocument $document ) : DOMDocument
$document DOMDocument
리턴 DOMDocument

getSortedCustomStylesheets() 보호된 메소드

The order is from the lowest priority to the highest since in case of a conflict, the last loaded XSL template always wins.
protected getSortedCustomStylesheets ( ) : array
리턴 array

getXSLTProcessor() 보호된 메소드

Returns the XSLTProcessor to use to transform internal XML to HTML5.
protected getXSLTProcessor ( ) : XSLTProcessor
리턴 XSLTProcessor

프로퍼티 상세

$customStylesheets 보호되어 있는 프로퍼티

Array of XSL stylesheets to add to the main one, grouped by priority.
protected array $customStylesheets
리턴 array

$stylesheet 보호되어 있는 프로퍼티

Path to stylesheet to use.
protected string $stylesheet
리턴 string