class AttributeList

Methods

__construct($list = [])

No description

addAttribute(string $name, mixed $content)

Add attribute

string
toString()

Outputs the attribute list as a string for use in markup

string
toVuePropsString()

Outputs the attribute list as a string for use in Vue templates

int
length()

Get length of attribute list

Details

at line 8
__construct($list = [])

Parameters

$list

at line 19
AttributeList addAttribute(string $name, mixed $content)

Add attribute

Parameters

string $name Attribute name
mixed $content Content of attribute

Return Value

AttributeList self

at line 29
string toString()

Outputs the attribute list as a string for use in markup

Return Value

string Attribute list for use in markup

at line 52
string toVuePropsString()

Outputs the attribute list as a string for use in Vue templates

Return Value

string Attribute list for use in Vue templates

at line 86
int length()

Get length of attribute list

Return Value

int Length of attribute list