protected function loadFile($prefix, $relativeClass) {

		// any base directories for this namespace prefix?

		if (!isset($this->prefixes[$prefix])) {
			$this->debug[] = $prefix . ': no base dirs';
			return FALSE;
		}

		// search base directories for this namespace prefix

		foreach($this->prefixes[$prefix] as $baseDir) {
	
			/*
			 * replace the namespace prefix with the base directory,
			 * replace namespace separators with directory separators
			 * append ".php"
			 */ 

			$file =
				$baseDir .
				str_replace('\\', DIRECTORY_SEPARATOR, $relativeClass) .
				'.php';
	
			// if mapped file exists, require it

			if ($this->requireFile($file)) {
				return $file;
			}
	
			// not in the base directory

			$this->debug[] = $prefix . ': ' . $file . ' not found';
		}
	
		// not found

		return FALSE;
	}
protected function loadFile($prefix, $relativeClass) {

		// any base directories for this namespace prefix?

		if (!isset($this->prefixes[$prefix])) {
			$this->debug[] = $prefix . ': no base dirs';
			return FALSE;
		}

		// search base directories for this namespace prefix

		foreach($this->prefixes[$prefix] as $baseDir) {
	
			/*
			 * replace the namespace prefix with the base directory,
			 * replace namespace separators with directory separators
			 * append ".php"
			 */ 

			$file =
				$baseDir .
				str_replace('\\', DIRECTORY_SEPARATOR, $relativeClass) .
				'.php';
	
			// if mapped file exists, require it

			if ($this->requireFile($file)) {
				return $file;
			}
	
			// not in the base directory

			$this->debug[] = $prefix . ': ' . $file . ' not found';
		}
	
		// not found

		return FALSE;
	}
protected function loadFile ( $ prefix , $ relativeClass ) { // any base directories for this namespace prefix? if ( ! isset ( $ this -> prefixes [ $ prefix ] ) ) { $ this -> debug [ ] = $ prefix . ': no base dirs' ; return FALSE ; } // search base directories for this namespace prefix foreach ( $ this -> prefixes [ $ prefix ] as $ baseDir ) { /*
			 * replace the namespace prefix with the base directory,
			 * replace namespace separators with directory separators
			 * append ".php"
			 */ $ file = $ baseDir . str_replace ( '\\' , DIRECTORY_SEPARATOR , $ relativeClass ) . '.php' ; // if mapped file exists, require it if ( $ this -> requireFile ( $ file ) ) { return $ file ; } // not in the base directory $ this -> debug [ ] = $ prefix . ': ' . $ file . ' not found' ; } // not found return FALSE ; }
loads mapped file for a namespace prefix and relative class

@param string $prefix
@param string $relativeClass

@return mixed name of mapped file that was loaded or FALSE if file could not be loaded
loads mapped file for a namespace prefix and relative class