public function getNamespace($modelid)
    {
        $returnValue = null;
    
        if(count($this->namespaces) == 0){
        	$this->getAllNamespaces();	//load the namespaces attribute 
       	}
        
        //get modelId from modelUri
        if(is_string($modelid)){
        	$modelid = array_search($modelid, $this->namespaces);
        }
        
    	//get namespace from modelId
    	if(is_int($modelid)){
        	if(isset($this->namespaces[$modelid])){
        		$returnValue = new common_ext_Namespace($modelid, $this->namespaces[$modelid]);
        	}
        }

        return $returnValue;
    }
public function getNamespace($modelid)
    {
        $returnValue = null;
    
        if(count($this->namespaces) == 0){
        	$this->getAllNamespaces();	//load the namespaces attribute 
       	}
        
        //get modelId from modelUri
        if(is_string($modelid)){
        	$modelid = array_search($modelid, $this->namespaces);
        }
        
    	//get namespace from modelId
    	if(is_int($modelid)){
        	if(isset($this->namespaces[$modelid])){
        		$returnValue = new common_ext_Namespace($modelid, $this->namespaces[$modelid]);
        	}
        }

        return $returnValue;
    }
public function getNamespace ( $ modelid ) { $ returnValue = null ; if ( count ( $ this -> namespaces ) == 0 ) { $ this -> getAllNamespaces ( ) ; //load the namespaces attribute 
 } //get modelId from modelUri
 if ( is_string ( $ modelid ) ) { $ modelid = array_search ( $ modelid , $ this -> namespaces ) ; } //get namespace from modelId
 if ( is_int ( $ modelid ) ) { if ( isset ( $ this -> namespaces [ $ modelid ] ) ) { $ returnValue = new common_ext_Namespace ( $ modelid , $ this -> namespaces [ $ modelid ] ) ; } } return $ returnValue ; }
Get a namesapce identified by the modelId or modelUri

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  modelid
@return common_ext_Namespace
Get a namesapce identified by the modelId or modelUri