lib/bagit_manifest.php
public function getHash($fileName)
    {
        if (array_key_exists($fileName, $this->data)) {
            return $this->data[$fileName];
        } else if (array_key_exists($this->_makeRelative($fileName), $this->data)) {
            return $this->data[$this->_makeRelative($fileName)];
        } else {
            return null;
        }
    }
public function getHash($fileName)
    {
        if (array_key_exists($fileName, $this->data)) {
            return $this->data[$fileName];
        } else if (array_key_exists($this->_makeRelative($fileName), $this->data)) {
            return $this->data[$this->_makeRelative($fileName)];
        } else {
            return null;
        }
    }
public function getHash ( $ fileName ) { if ( array_key_exists ( $ fileName , $ this -> data ) ) { return $ this -> data [ $ fileName ] ; } else if ( array_key_exists ( $ this -> _makeRelative ( $ fileName ) , $ this -> data ) ) { return $ this -> data [ $ this -> _makeRelative ( $ fileName ) ] ; } else { return null ; } }
This returns the hash for a file.

@param string $fileName This can be either the absolute file name or the
file name without the path prefix.

@return string The file's hash.
This returns the hash for a file .