interface IContainer implements IComponent

Containers are objects that logically contain zero or more IComponent components.

Methods

void
addComponent(IComponent $component, $name)

Adds the specified component to the IContainer.

void
removeComponent(IComponent $component)

Removes a component from the IContainer.

IComponent|null
getComponent($name)

Returns single component.

getComponents($deep = FALSE, $filterType = NULL)

Iterates over a components.

Details

at line 23
void addComponent(IComponent $component, $name)

Adds the specified component to the IContainer.

Parameters

IComponent $component
$name

Return Value

void

at line 30
void removeComponent(IComponent $component)

Removes a component from the IContainer.

Parameters

IComponent $component

Return Value

void

at line 37
IComponent|null getComponent($name)

Returns single component.

Parameters

$name

Return Value

IComponent|null

at line 45
Iterator getComponents($deep = FALSE, $filterType = NULL)

Iterates over a components.

Parameters

$deep
$filterType

Return Value

Iterator