public static function getComponentById(array $componentToData, $id){
    	foreach ($componentToData as $ctd){
    		if ($ctd['id'] == $id){
    			return $ctd['component'];
    		}
    	}
    	
    	return null;
    }
public static function getComponentById(array $componentToData, $id){
    	foreach ($componentToData as $ctd){
    		if ($ctd['id'] == $id){
    			return $ctd['component'];
    		}
    	}
    	
    	return null;
    }
public static function getComponentById ( array $ componentToData , $ id ) { foreach ( $ componentToData as $ ctd ) { if ( $ ctd [ 'id' ] == $ id ) { return $ ctd [ 'component' ] ; } } return null ; }
Returns a component stored in an array of array. The searched key is 'id'. If matched,
the component instance is returned. Otherwise null.

@param array $componentToData
@param string $id
@return common_configuration_Component
Returns a component stored in an array of array . The searched key is id . If matched the component instance is returned . Otherwise null .