private function map($destination, $entry_name)
	{
		$base_path = str_replace(DIRECTORY_SEPARATOR, '/', getcwd());
		$opus_path = str_replace($base_path, '', $destination);

		if (!isset($this->installationMap[$opus_path])) {
			$this->installationMap[$opus_path] = array();
		}

		if (!in_array($entry_name, $this->installationMap[$opus_path])) {
			$this->installationMap[$opus_path][] = $entry_name;

		} else {

			//
			// It's already mapped, what more do you want?
			//

		}
	}
private function map($destination, $entry_name)
	{
		$base_path = str_replace(DIRECTORY_SEPARATOR, '/', getcwd());
		$opus_path = str_replace($base_path, '', $destination);

		if (!isset($this->installationMap[$opus_path])) {
			$this->installationMap[$opus_path] = array();
		}

		if (!in_array($entry_name, $this->installationMap[$opus_path])) {
			$this->installationMap[$opus_path][] = $entry_name;

		} else {

			//
			// It's already mapped, what more do you want?
			//

		}
	}
private function map ( $ destination , $ entry_name ) { $ base_path = str_replace ( DIRECTORY_SEPARATOR , '/' , getcwd ( ) ) ; $ opus_path = str_replace ( $ base_path , '' , $ destination ) ; if ( ! isset ( $ this -> installationMap [ $ opus_path ] ) ) { $ this -> installationMap [ $ opus_path ] = array ( ) ; } if ( ! in_array ( $ entry_name , $ this -> installationMap [ $ opus_path ] ) ) { $ this -> installationMap [ $ opus_path ] [ ] = $ entry_name ; } else { // // It's already mapped, what more do you want? // } }
Maps a package entry name to an opus path

This essentially ensures that our map keeps track of which packages have touched a given
destination file.  If all packages are removed for a given file, then the file can be
safely removed as well.

@access private
@param string $dest The Destination to map
@param string $entry_name The entry name to map under
@return void
Maps a package entry name to an opus path