Class Xyster_Container_Empty

Description

Implements interfaces:

Empty container serving as a null value object

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Container/Empty.php (line 28)


	
			
Method Summary
void accept (Xyster_Container_Visitor $visitor)
object an getComponent (mixed $componentKeyOrType)
void getComponentAdapterByType (mixed $componentType, [Xyster_Container_NameBinding $nameBinding = null])
Xyster_Collection_List getComponentAdapters ([ $componentType = null])
Xyster_Collection_List getComponents ([ $componentType = null])
Methods
accept (line 35)

Accepts a visitor that should visit the child containers, component adapters and component instances.

  • access: public
void accept (Xyster_Container_Visitor $visitor)
  • visitor $visitor: the visitor

Implementation of:
Xyster_Container_Interface::accept()
Accepts a visitor that should visit the child containers, component adapters and component instances.
getComponent (line 45)

Retrieve a component instance registered with a specific key or type

  • return: instantiated component, or null if no component has been registered for the specified key
  • access: public
object an getComponent (mixed $componentKeyOrType)
  • mixed $componentKeyOrType: the key or Type that the component was registered with

Implementation of:
Xyster_Container_Interface::getComponent()
Retrieve a component instance registered with a specific key or type
getComponentAdapter (line 74)

Find a component adapter associated with the specified key

  • return: the component adapter associated with this key, or null
  • access: public
Xyster_Container_Adapter getComponentAdapter (mixed $componentKey)
  • mixed $componentKey: the key that the component was registered with

Implementation of:
Xyster_Container_Interface::getComponentAdapter()
Find a component adapter associated with the specified key
getComponentAdapterByType (line 85)

Find a component adapter by type (and optionally by parameter name)

  • access: public
void getComponentAdapterByType (mixed $componentType, [Xyster_Container_NameBinding $nameBinding = null])

Implementation of:
Xyster_Container_Interface::getComponentAdapterByType()
Find a component adapter by type (and optionally by parameter name)
getComponentAdapters (line 98)

Retrieve all the component adapters inside this container.

If the type is supplied, this method returns the adapters associated with the specified type.

  • return: a fixed collection containing all the adapters inside this container
  • access: public
Xyster_Collection_List getComponentAdapters ([ $componentType = null])
  • Xyster_Type $componentType

Implementation of:
Xyster_Container_Interface::getComponentAdapters()
Retrieve all the component adapters inside this container.
getComponents (line 62)

Retrieve all the registered component instances in the container

The components are returned in their order of instantiation, which depends on the dependency order between them.

If the type parameter is supplied, this method returns the components of the specified type.

  • return: all the components.
  • access: public
Xyster_Collection_List getComponents ([ $componentType = null])
  • Xyster_Type $componentType: the type to search

Implementation of:
Xyster_Container_Interface::getComponents()
Retrieve all the registered component instances in the container

Documentation generated on Mon, 19 May 2008 17:08:18 -0400 by phpDocumentor 1.4.2