Class ComponentContainer
ComponentContainer is default implementation of IComponentContainer.
- Object
-
Component implements IComponent
-
ComponentContainer implements IComponentContainer
public
void
|
#
addComponent(
IComponent
$component,
string
$name,
string
$insertBefore = NULL
)
Adds the specified component to the IComponentContainer. Adds the specified component to the IComponentContainer. Parameters$component IComponent$name string$insertBefore stringThrowsImplementation of |
public
void
|
#
removeComponent(
IComponent
$component
)
Removes a component from the IComponentContainer. Removes a component from the IComponentContainer. Parameters$component IComponentImplementation of |
final public
IComponent|NULL
|
#
getComponent(
string
$name,
bool
$need = true
)
Returns component specified by name or path. Returns component specified by name or path. Parameters$name string$need bool throw exception if component doesn't exist?Implementation of |
protected
IComponent
|
#
createComponent(
string
$name
)
Component factory. Delegates the creation of components to a createComponent<Name> method. Component factory. Delegates the creation of components to a createComponent<Name> method. Parameters$name string component nameReturnsIComponent the created component (optionally)
|
final public
ArrayIterator
|
#
getComponents(
bool
$deep = false,
string
$filterType = NULL
)
Iterates over a components. Iterates over a components. Parameters$deep bool recursive?$filterType string class types filterImplementation of |
protected
void
|
#
validateChildComponent(
IComponent
$child
)
Descendant can override this method to disallow insert a child by throwing an InvalidStateException. Descendant can override this method to disallow insert a child by throwing an InvalidStateException. Parameters$child IComponentThrows |
public
|
#
__clone(
)
Object cloning. Object cloning. |
Methods Inherited From Component
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), setParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From Component
NAME_SEPARATOR