public function getContents($hash) {
		$file = $this->file($hash);
		
		if (!$file) {
			return $this->setError(elFinder::ERROR_FILE_NOT_FOUND);
		}
		
		if ($file['mime'] == 'directory') {
			return $this->setError(elFinder::ERROR_NOT_FILE);
		}
		
		if (!$file['read']) {
			return $this->setError(elFinder::ERROR_PERM_DENIED);
		}
		
		return $this->convEncOut($this->_getContents($this->convEncIn($this->decode($hash))));
	}
public function getContents($hash) {
		$file = $this->file($hash);
		
		if (!$file) {
			return $this->setError(elFinder::ERROR_FILE_NOT_FOUND);
		}
		
		if ($file['mime'] == 'directory') {
			return $this->setError(elFinder::ERROR_NOT_FILE);
		}
		
		if (!$file['read']) {
			return $this->setError(elFinder::ERROR_PERM_DENIED);
		}
		
		return $this->convEncOut($this->_getContents($this->convEncIn($this->decode($hash))));
	}
public function getContents ( $ hash ) { $ file = $ this -> file ( $ hash ) ; if ( ! $ file ) { return $ this -> setError ( elFinder :: ERROR_FILE_NOT_FOUND ) ; } if ( $ file [ 'mime' ] == 'directory' ) { return $ this -> setError ( elFinder :: ERROR_NOT_FILE ) ; } if ( ! $ file [ 'read' ] ) { return $ this -> setError ( elFinder :: ERROR_PERM_DENIED ) ; } return $ this -> convEncOut ( $ this -> _getContents ( $ this -> convEncIn ( $ this -> decode ( $ hash ) ) ) ) ; }
Return file contents

@param  string  $hash  file hash
@return string|false
@author Dmitry (dio) Levashov
Return file contents