final class Tag

Latte tag or n:attribute.

Constants

PrefixInner

PrefixTag

PrefixNone

OutputNone

OutputKeepIndentation

OutputRemoveIndentation

Properties

$parser
$outputMode

Methods

__construct(string $name, array $tokens, Position $position, bool $void = false, bool $closing = false, bool $inHead = false, bool $inTag = false, ElementNode|null $htmlElement = null, Tag|null $parent = null, string|null $prefix = null, AreaNode|null $node = null, AreaNode|null $nAttributeNode = null)

No description

bool
isInHead()

No description

bool
isInText()

No description

bool
isNAttribute()

No description

string
getNotation(bool $withArgs = false)

No description

Tag|null
closestTag(array $classes, callable|null $condition = null)

No description

void
expectArguments(string $what = 'arguments')

No description

void
replaceNAttribute(AreaNode $node)

No description

Details

at line 36
__construct(string $name, array $tokens, Position $position, bool $void = false, bool $closing = false, bool $inHead = false, bool $inTag = false, ElementNode|null $htmlElement = null, Tag|null $parent = null, string|null $prefix = null, AreaNode|null $node = null, AreaNode|null $nAttributeNode = null)

No description

Parameters

string $name
array $tokens
Position $position
bool $void
bool $closing
bool $inHead
bool $inTag
ElementNode|null $htmlElement
Tag|null $parent
string|null $prefix
AreaNode|null $node
AreaNode|null $nAttributeNode

at line 54
bool isInHead()

No description

Return Value

bool

at line 60
bool isInText()

No description

Return Value

bool

at line 66
bool isNAttribute()

No description

Return Value

bool

at line 72
string getNotation(bool $withArgs = false)

No description

Parameters

bool $withArgs

Return Value

string

at line 89
Tag|null closestTag(array $classes, callable|null $condition = null)

No description

Parameters

array $classes
callable|null $condition

Return Value

Tag|null

at line 103
void expectArguments(string $what = 'arguments')

No description

Parameters

string $what

Return Value

void

at line 111
void replaceNAttribute(AreaNode $node)

No description

Parameters

AreaNode $node

Return Value

void