A classe XSLTProcessor

(PHP 5, PHP 7, PHP 8)

Introdução

Resumo da classe

class XSLTProcessor {
/* Propriedades */
public bool $doXInclude = false;
public bool $cloneDocument = false;
/* Métodos */
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
}

Propriedades

doXInclude
Informa se devem ser realizados xIncludes.
cloneDocument
Informa se devem ser realizada transformação em um clone do documento.
maxTemplateDepth
A profundidade máxima de recursão do modelo.
maxTemplateVars
O número máximo de variáveis ​​no modelo.

Registro de Alterações

Versão Descrição
8.4.0 As propriedades doXInclude e cloneDocument agora são definidas explicitamente na classe.
8.4.0 Adicionadas as propriedades maxTemplateDepth e maxTemplateVars.

Índice

adicionar nota

Notas de Usuários 3 notes

up
4
tschallacka
10 years ago
uncomment extension=php_xsl.dll on windows to activate it in your php.ini. Then restart your webserver to refresh php.
up
2
joandres52725lm at gmail dot com
6 years ago
[Update] PHP version /.3.15 and Windows Uncomment `extension=xsl` to activate it in your php.ini. Then restart your webserver to refresh php.
up
0
flavius
10 years ago
It requires PHP5 XSL extension. On linux:

sudo apt-get install php5-xsl
To Top