HumHub Documentation (unofficial)

AutoEscapeNode extends Node
in package

Represents an autoescape node.

The value is the escaping strategy (can be html, js, ...)

The true value is equivalent to html.

If autoescaping is disabled, then the value is false.

Tags
author

Fabien Potencier fabien@symfony.com

Attributes
#[YieldReady]

Table of Contents

Properties

$attributes  : mixed
$lineno  : mixed
$nodes  : mixed
$tag  : mixed
$sourceContext  : mixed

Methods

__construct()  : mixed
__toString()  : mixed
compile()  : void
count()  : int
getAttribute()  : mixed
getIterator()  : Traversable
getNode()  : self
getNodeTag()  : string|null
getSourceContext()  : Source|null
getTemplateLine()  : int
getTemplateName()  : string|null
hasAttribute()  : bool
hasNode()  : bool
removeAttribute()  : void
removeNode()  : void
setAttribute()  : void
setNode()  : void
setSourceContext()  : void

Properties

$attributes

protected mixed $attributes

$lineno

protected mixed $lineno

$nodes

protected mixed $nodes

$tag

protected mixed $tag

$sourceContext

private mixed $sourceContext

Methods

__construct()

public __construct(mixed $value, Node $body, int $lineno[, string $tag = 'autoescape' ]) : mixed
Parameters
$value : mixed
$body : Node
$lineno : int

The line number

$tag : string = 'autoescape'

The tag name associated with the Node

__toString()

public __toString() : mixed

getAttribute()

public getAttribute(string $name) : mixed
Parameters
$name : string

getIterator()

public getIterator() : Traversable
Return values
Traversable

getNode()

public getNode(string $name) : self
Parameters
$name : string
Return values
self

getNodeTag()

public getNodeTag() : string|null
Return values
string|null

getSourceContext()

public getSourceContext() : Source|null
Return values
Source|null

getTemplateLine()

public getTemplateLine() : int
Return values
int

getTemplateName()

public getTemplateName() : string|null
Return values
string|null

hasAttribute()

public hasAttribute(string $name) : bool
Parameters
$name : string
Return values
bool

hasNode()

public hasNode(string $name) : bool
Parameters
$name : string
Return values
bool

removeAttribute()

public removeAttribute(string $name) : void
Parameters
$name : string

removeNode()

public removeNode(string $name) : void
Parameters
$name : string

setAttribute()

public setAttribute(string $name, mixed $value) : void
Parameters
$name : string
$value : mixed

setNode()

public setNode(string $name, self $node) : void
Parameters
$name : string
$node : self

setSourceContext()

public setSourceContext(Source $source) : void
Parameters
$source : Source

        
On this page

Search results