public function getAllNamespaces()
    {
        $returnValue = array();

        
        
        if(count($this->namespaces) == 0){
        	$db = core_kernel_classes_DbWrapper::singleton();
        	$query = 'SELECT modelid, modeluri FROM models';
			$result = $db->query($query);
			
			while ($row = $result->fetch()){	
				$id 	= $row['modelid'];
				$uri 	= $row['modeluri'];
				$this->namespaces[$id] = $uri;
			}
        }
        
        foreach($this->namespaces as $id => $uri){
        	$returnValue[$uri] = new common_ext_Namespace($id, $uri);
        }

        

        return (array) $returnValue;
    }
public function getAllNamespaces()
    {
        $returnValue = array();

        
        
        if(count($this->namespaces) == 0){
        	$db = core_kernel_classes_DbWrapper::singleton();
        	$query = 'SELECT modelid, modeluri FROM models';
			$result = $db->query($query);
			
			while ($row = $result->fetch()){	
				$id 	= $row['modelid'];
				$uri 	= $row['modeluri'];
				$this->namespaces[$id] = $uri;
			}
        }
        
        foreach($this->namespaces as $id => $uri){
        	$returnValue[$uri] = new common_ext_Namespace($id, $uri);
        }

        

        return (array) $returnValue;
    }
public function getAllNamespaces ( ) { $ returnValue = array ( ) ; if ( count ( $ this -> namespaces ) == 0 ) { $ db = core_kernel_classes_DbWrapper :: singleton ( ) ; $ query = 'SELECT modelid, modeluri FROM models' ; $ result = $ db -> query ( $ query ) ; while ( $ row = $ result -> fetch ( ) ) { $ id = $ row [ 'modelid' ] ; $ uri = $ row [ 'modeluri' ] ; $ this -> namespaces [ $ id ] = $ uri ; } } foreach ( $ this -> namespaces as $ id => $ uri ) { $ returnValue [ $ uri ] = new common_ext_Namespace ( $ id , $ uri ) ; } return ( array ) $ returnValue ; }
Get the list of all module's namespaces

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@return array
Get the list of all module s namespaces