Einführung
PHP Manual
PHP Manual»XSL»XSLTProcessor

Die Klasse XSLTProcessor

(PHP 5, PHP 7, PHP 8)

class XSLTProcessor {
/* Eigenschaften */
public bool $doXInclude = false;
public bool $cloneDocument = false;
/* Methoden */
public function getParameter(string $namespace, string $name): string|false
public function getSecurityPrefs(): int
public function hasExsltSupport(): bool
public function importStylesheet(object $stylesheet): bool
public function registerPHPFunctionNS(string $namespaceURI, string $name, callable $callable): void
public function registerPHPFunctions(array|string|null $functions = null): void
public function removeParameter(string $namespace, string $name): bool
public function setParameter(string $namespace, string $name, string $value): bool
public function setParameter(string $namespace, array $options): bool
public function setProfiling(?string $filename): true
public function setSecurityPrefs(int $preferences): int
public function transformToDoc(object $document, ?string $returnClass = null): object|false
public function transformToUri(object $document, string $uri): int
public function transformToXml(object $document): string|null|false
}
doXInclude
Gibt an, ob xIncludes durchgeführt werden soll.
cloneDocument
Gibt an, ob die Transformation an einem Klon des Dokuments durchgeführt werden soll.
maxTemplateDepth
Die maximale Rekursionstiefe der Vorlage.
maxTemplateVars
Die maximale Anzahl an Variablen in der Vorlage.
Version Beschreibung
8.4.0 Die Eigenschaften doXInclude und cloneDocument sind nun explizit in der Klasse definiert.
8.4.0 Die Eigenschaften maxTemplateDepth und maxTemplateVars wurden hinzugefügt.

Inhaltsverzeichnis

To Top