original_string: public function get_content_file_handle(stored_file $file, $type = stored_file::FILE_HANDLE_FOPEN) {
          if ($type === stored_file::FILE_HANDLE_GZOPEN) {
              // Local file required for gzopen.
              $path = $this->get_local_path_from_storedfile($file, true);
          } else {
              $path = $this->get_remote_path_from_storedfile($file);
          }
  
          return self::get_file_handle_for_path($path, $type);
      }
code: public function get_content_file_handle(stored_file $file, $type = stored_file::FILE_HANDLE_FOPEN) {
          if ($type === stored_file::FILE_HANDLE_GZOPEN) {
              // Local file required for gzopen.
              $path = $this->get_local_path_from_storedfile($file, true);
          } else {
              $path = $this->get_remote_path_from_storedfile($file);
          }
  
          return self::get_file_handle_for_path($path, $type);
      }
code_tokens: public function get_content_file_handle ( stored_file $ file , $ type = stored_file :: FILE_HANDLE_FOPEN ) { if ( $ type === stored_file :: FILE_HANDLE_GZOPEN ) { // Local file required for gzopen. $ path = $ this -> get_local_path_from_storedfile ( $ file , true ) ; } else { $ path = $ this -> get_remote_path_from_storedfile ( $ file ) ; } return self :: get_file_handle_for_path ( $ path , $ type ) ; }
docstring: Returns file handle - read only mode, no writing allowed into pool files!
  
  When you want to modify a file, create a new file and delete the old one.
  
  @param stored_file $file The file to retrieve a handle for
  @param int $type Type of file handle (FILE_HANDLE_xx constant)
  @return resource file handle
docstring_tokens: Returns file handle - read only mode no writing allowed into pool files!