class HtmlTag

Traits

Properties

protected array $globalAttributes Global common HTML tag attributes.
protected array $attributes HTML tag attributes.
protected array $guardedAttributes Callable fluent HTML tag attributes but not formatted.
protected array $markup HTML Tag markup, open and close.
protected string $content This is the content of a Html tag, suc as

{content}

Methods

__get($name)

No description

__set($name, $value)

No description

__isset(string $name)

Extend the __isset method to check for the method get{Name}Attribute.

__unset(string $name)

Extend the __unset method to check for the method get{Name}Attribute.

bool
hasGetMutator(string $key)

Determine if a get mutator exists for an attribute.

mixed
mutateAttribute(string $key)

Get the value of an attribute using its mutator.

bool
hasSetMutator(string $key)

Determine if a set mutator exists for an attribute.

mixed
setMutatedAttributeValue(string $key, mixed $value)

Set the value of an attribute using its mutator.

getAttributesAttribute()

No description

attributes($values)

No description

formatAttributes()

No description

formatGlobalAttributes()

No description

getStyleAttribute()

No description

style()

No description

data()

No description

getDataAttribute()

No description

formatDataAttributes()

No description

getClassAttribute()

No description

setClassAttribute($value)

No description

getAcceptcharsetAttribute()

No description

setAcceptcharsetAttribute($value)

No description

__construct(array $arguments = [])

HtmlTag constructor.

string
__toString()

Get the string rappresentation of the tag.

__call($name, $arguments)

No description

string
html()

Get the HTML output.

render()

Display the HTML output.

beforeOpenTag()

No description

afterCloseTag()

No description

Details

at line 269
__get($name)

Parameters

$name

at line 288
__set($name, $value)

Parameters

$name
$value

in HasAttributes at line 45
__isset(string $name)

Extend the __isset method to check for the method get{Name}Attribute.

Parameters

string $name Usually the protected property name.

in HasAttributes at line 58
__unset(string $name)

Extend the __unset method to check for the method get{Name}Attribute.

Parameters

string $name Usually the protected property name.

in HasAttributes at line 72
bool hasGetMutator(string $key)

Determine if a get mutator exists for an attribute.

Parameters

string $key

Return Value

bool

in HasAttributes at line 83
protected mixed mutateAttribute(string $key)

Get the value of an attribute using its mutator.

Parameters

string $key

Return Value

mixed

in HasAttributes at line 94
bool hasSetMutator(string $key)

Determine if a set mutator exists for an attribute.

Parameters

string $key

Return Value

bool

in HasAttributes at line 106
protected mixed setMutatedAttributeValue(string $key, mixed $value)

Set the value of an attribute using its mutator.

Parameters

string $key
mixed $value

Return Value

mixed

at line 84
protected getAttributesAttribute()

at line 89
attributes($values)

Parameters

$values

at line 100
formatAttributes()

at line 113
formatGlobalAttributes()

at line 126
protected getStyleAttribute()

at line 143
style()

at line 166
data()

at line 184
getDataAttribute()

at line 189
formatDataAttributes()

at line 211
protected getClassAttribute()

at line 216
protected setClassAttribute($value)

Parameters

$value

at line 225
protected getAcceptcharsetAttribute()

at line 230
protected setAcceptcharsetAttribute($value)

Parameters

$value

at line 248
__construct(array $arguments = [])

HtmlTag constructor.

Parameters

array $arguments

at line 312
string __toString()

Get the string rappresentation of the tag.

Return Value

string

at line 317
__call($name, $arguments)

Parameters

$name
$arguments

at line 337
string html()

Get the HTML output.

Return Value

string

at line 371
render()

Display the HTML output.

at line 377
protected beforeOpenTag()

at line 383
protected afterCloseTag()