PHP Class eZ\Publish\Core\FieldType\RichText\Converter\Xslt

Inheritance: extends eZ\Publish\Core\FieldType\RichText\XmlBase, implements eZ\Publish\Core\FieldType\RichText\Converter
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$customStylesheets array Array of XSL stylesheets to add to the main one, grouped by priority.
$stylesheet string Path to stylesheet to use.

Méthodes publiques

Méthode Description
__construct ( string $stylesheet, array $customStylesheets = [] ) Constructor.
convert ( DOMDocument $document ) : DOMDocument Performs conversion of the given $document using XSLT stylesheet.

Méthodes protégées

Méthode Description
getSortedCustomStylesheets ( ) : array Returns custom stylesheets to load, sorted.
getXSLTProcessor ( ) : XSLTProcessor Returns the XSLTProcessor to use to transform internal XML to HTML5.

Method Details

__construct() public méthode

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() public méthode

Performs conversion of the given $document using XSLT stylesheet.
public convert ( DOMDocument $document ) : DOMDocument
$document DOMDocument
Résultat DOMDocument

getSortedCustomStylesheets() protected méthode

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
Résultat array

getXSLTProcessor() protected méthode

Returns the XSLTProcessor to use to transform internal XML to HTML5.
protected getXSLTProcessor ( ) : XSLTProcessor
Résultat XSLTProcessor

Property Details

$customStylesheets protected_oe property

Array of XSL stylesheets to add to the main one, grouped by priority.
protected array $customStylesheets
Résultat array

$stylesheet protected_oe property

Path to stylesheet to use.
protected string $stylesheet
Résultat string