Tag
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
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
at line 55
bool
isInHead()
No description
at line 61
bool
isInText()
No description
at line 67
bool
isNAttribute()
No description
at line 73
string
getNotation(bool $withArgs = false)
No description
at line 90
Tag|null
closestTag(array $names, callable|null $condition = null)
No description
at line 104
void
expectArguments(string $what = 'arguments')
No description
at line 112
void
replaceNAttribute(Node $node)
No description
Traits
Better OOP experience.