Class NComponentContainer
	
	
ComponentContainer is default implementation of IContainer.
	 
	
		- 
			NObject
			
			
			
		
 
		- 
			
			NComponent
			
			 implements 
				IComponent
			
			
		 
		- 
			
NComponentContainer			
			 implements 
				IComponentContainer
			
			
		 
	
	
	
	
	
	Methods summary
	
		
			 public 
			NComponentContainer
			
			
		 | 
		
		#
		addComponent( IComponent $component, string $name, string $insertBefore = NULL )
		
			
Adds the specified component to the IContainer. 
		 
		
			
Adds the specified component to the IContainer. 
				Parameters
				
					- $component
 
					IComponent 
					- $name
 
					string 
					- $insertBefore
 
					string 
				  
				Returns
				
				Throws
				
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			
			
			
		 | 
		
		#
		removeComponent( IComponent $component )
		
			
Removes a component from the IContainer. 
		 
		
			
Removes a component from the IContainer. 
				Parameters
				
				Implementation of
				
		 
		  | 
	
	
		
			 public 
			IComponent|null
			
			
		 | 
		
		#
		getComponent( string $name, boolean $need = TRUE )
		
			
Returns component specified by name or path. 
		 
		
			
Returns component specified by name or path. 
				Parameters
				
					- $name
 
					string 
					- $need
 
					boolean throw exception if component doesn't exist? 
				  
				Returns
				
				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 name 
				  
				Returns
				
		 
		  | 
	
	
		
			 public 
			ArrayIterator
			
			
		 | 
		
		#
		getComponents( boolean $deep = FALSE, string $filterType = NULL )
		
			
Iterates over components. 
		 
		
			
Iterates over components. 
				Parameters
				
					- $deep
 
					boolean recursive? 
					- $filterType
 
					string class types filter 
				  
				Returns
				
				Implementation of
				
		 
		  | 
	
	
		
			 protected 
			
			
			
		 | 
		
		#
		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. 
				Throws
				
		 
		  | 
	
	
		
			 public 
			
			
			
		 | 
		 | 
	
	
	
	Methods inherited from NComponent
	
		
			__construct(), 
			__sleep(), 
			__wakeup(), 
			attached(), 
			detached(), 
			getName(), 
			getParent(), 
			lookup(), 
			lookupPath(), 
			monitor(), 
			unmonitor(), 
			validateParent()
		 |