PHP Класс eZ\Publish\Core\FieldType\RichText\Converter\Xslt

Наследование: extends eZ\Publish\Core\FieldType\RichText\XmlBase, implements eZ\Publish\Core\FieldType\RichText\Converter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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