original_string: 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))));
  	}
code: 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))));
  	}
code_tokens: 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 ) ) ) ) ; }
docstring: Return file contents
  
  @param  string  $hash  file hash
  @return string|false
  @author Dmitry (dio) Levashov
docstring_tokens: Return file contents