DomElements
class DomElements implements IteratorAggregate, ArrayAccess, Countable (View source)
Html Elements collection.
Methods
__construct(array|mixed $elements = array(), boolean $strict = false)
Class init.
string
__toString()
Convert all elements to string.
getIterator()
Retrieve an external iterator
boolean
offsetExists(mixed $offset)
Whether a offset exists
mixed
offsetGet(mixed $offset)
Offset to retrieve
void
offsetSet(mixed $offset, mixed $value)
Offset to set
void
offsetUnset(mixed $offset)
Offset to unset
int
count()
Count elements of an object
boolean
getStrict()
Method to get property Strict
setStrict(boolean $strict)
Method to set property strict
mixed[]|HtmlElement[]
getElements()
Method to get property Elements
Details
at line line 38
__construct(array|mixed $elements = array(), boolean $strict = false)
Class init.
at line line 54
string
__toString()
Convert all elements to string.
at line line 71
Traversable
getIterator()
Retrieve an external iterator
at line line 83
boolean
offsetExists(mixed $offset)
Whether a offset exists
at line line 95
mixed
offsetGet(mixed $offset)
Offset to retrieve
at line line 113
void
offsetSet(mixed $offset, mixed $value)
Offset to set
at line line 132
void
offsetUnset(mixed $offset)
Offset to unset
at line line 147
int
count()
Count elements of an object
at line line 157
boolean
getStrict()
Method to get property Strict
at line line 169
DomElements
setStrict(boolean $strict)
Method to set property strict
at line line 181
mixed[]|HtmlElement[]
getElements()
Method to get property Elements
at line line 193
DomElements
setElements(mixed[]|HtmlElement[] $elements)
Method to set property elements