AbstractTypifiedElementCollection
class AbstractTypifiedElementCollection extends AbstractElementCollection implements ITypifiedElement (View source)
Represents a list of typified elements.
Properties
protected string | $elementClass | Element class, that is allowed in the collection. | from AbstractElementCollection |
private string | $_name | Name of the element. |
Methods
Initializes collection with a list of elements.
Determines if an element can be added to a collection.
Creates new collection by wrapping given array of Node elements.
Determines if class is NodeElement aware.
Checks that element's class is allowed in collection.
No description
Sets a name of an element.
Returns name of the entity.
Details
at line 36
__construct(array $elements = array())
Initializes collection with a list of elements.
protected boolean
acceptElement(mixed $element)
Determines if an element can be added to a collection.
void
offsetSet(mixed $index, mixed $newval)
Offset to set.
static AbstractElementCollection
fromNodeElements(array $node_elements, string $element_class = null, IPageFactory $page_factory)
Creates new collection by wrapping given array of Node elements.
protected boolean
isNodeElementAware(string $class_name)
Determines if class is NodeElement aware.
protected boolean
assertElement(mixed $element)
Checks that element's class is allowed in collection.
at line 21
Expectation
shouldReceive(string $name)
at line 54
ITypifiedElement
setName(string $name)
Sets a name of an element.
This method is used by initialization mechanism and is not intended to be used directly.
at line 66
string
getName()
Returns name of the entity.