Класс XSLTProcessor

(PHP 5, PHP 7, PHP 8)

Введение

Обзор класса

class XSLTProcessor {
/* Свойства */
public bool $doXInclude = false;
public bool $cloneDocument = false;
/* Методы */
public getParameter(string $namespace, string $name): string|false
public importStylesheet(object $stylesheet): bool
public registerPHPFunctionNS(string $namespaceURI, string $name, callable $callable): void
public removeParameter(string $namespace, string $name): bool
public setParameter(string $namespace, string $name, string $value): bool
public setParameter(string $namespace, array $options): bool
public setProfiling(?string $filename): true
public setSecurityPrefs(int $preferences): int
public transformToDoc(object $document, ?string $returnClass = null): object|false
public transformToUri(object $document, string $uri): int
}

Свойства

doXInclude
Выполнять ли включение xIncludes.
cloneDocument
Выполнять ли преобразование клона документа.
maxTemplateDepth
Максимальная глубина рекурсии шаблона.
maxTemplateVars
Максимальное количество переменных в шаблоне.

Список изменений

Версия Описание
8.4.0 Свойства doXInclude и cloneDocument явно определили в классе.
8.4.0 Добавили свойства maxTemplateDepth и maxTemplateVars.

Содержание