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, int $location = 0, ElementNode|null $htmlElement = null, Tag|null $parent = null, string|null $prefix = null, stdClass|null $data = 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 $names, callable|null $condition = null)

No description

void
expectArguments(string $what = 'arguments')

No description

void
replaceNAttribute(Node $node)

No description

Details

at line 38
__construct(string $name, array $tokens, Position $position, bool $void = false, bool $closing = false, int $location = 0, ElementNode|null $htmlElement = null, Tag|null $parent = null, string|null $prefix = null, stdClass|null $data = null)

No description

Parameters

string $name
array $tokens
Position $position
bool $void
bool $closing
int $location
ElementNode|null $htmlElement
Tag|null $parent
string|null $prefix
stdClass|null $data

at line 55
bool isInHead()

No description

Return Value

bool

at line 61
bool isInText()

No description

Return Value

bool

at line 67
bool isNAttribute()

No description

Return Value

bool

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

No description

Parameters

bool $withArgs

Return Value

string

at line 90
Tag|null closestTag(array $names, callable|null $condition = null)

No description

Parameters

array $names
callable|null $condition

Return Value

Tag|null

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

No description

Parameters

string $what

Return Value

void

at line 112
void replaceNAttribute(Node $node)

No description

Parameters

Node $node

Return Value

void

Traits

Better OOP experience.