final class Modifier

Modifier processor.

Modifiers are texts like .(title)[class1 class2 #id]{color: red}>^ . starts with dot (...) title or alt modifier [...] classes or ID modifier {...} inner style modifier < > <> = horizontal align modifier ^ - _ vertical align modifier

Properties

$id
array<string,bool> $classes
array<string,string> $styles
array<string,string|string[]> $attrs
$hAlign
$vAlign
$title
$cite
static array<string,int> $elAttrs

Methods

__construct(string|null $s = null)

No description

void
setProperties(string|null $s)

No description

decorate(Texy $texy, HtmlElement $el)

Decorates HtmlElement element.

Details

at line 57
__construct(string|null $s = null)

No description

Parameters

string|null $s

at line 63
void setProperties(string|null $s)

No description

Parameters

string|null $s

Return Value

void

at line 107
HtmlElement decorate(Texy $texy, HtmlElement $el)

Decorates HtmlElement element.

Parameters

Texy $texy
HtmlElement $el

Return Value

HtmlElement

Traits

Better OOP experience.