ElementPool¶
Qualified name: | Ouxsoft\LivingMarkup\Element\ElementPool |
---|---|
Implements: | ElementPoolInterface |
-
class
ElementPool
¶ -
public
add
(AbstractElement` $element)¶ Add new element to pool
Parameters: - $element (AbstractElement`) –
-
public
callRoutine
(string $routine)¶ Invoke a method if present in each element
Parameters: - $routine (string) –
-
public
count
() → int¶ Returns a count of number of elements in collection
Returns: int –
-
public
getById
([])¶ Get Element by placeholder id
Parameters: - $element_id (?string) – Default:
null
Returns: AbstractElement|null
- $element_id (?string) – Default:
-
public
getIterator
()¶ Iterator to go through element pool
Returns: ArrayIterator
-
public
getPropertiesById
(string $element_id) → array¶ Get the public properties of a element using the elements ID
Parameters: - $element_id (string) –
Returns: array –
-
public