Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tar.php

function Archive_Tar::extractInString

This method extract from the archive one file identified by $p_filename. The return value is a string with the file content, or NULL on error.

Parameters

string $p_filename The path of the file to extract in a string.:

Return value

a string with the file content or NULL.

File

vendor/pear/archive_tar/Archive/Tar.php, line 595

Class

Archive_Tar
Creates a (compressed) Tar archive

Code

public function extractInString($p_filename) {
    if ($this->_openRead()) {
        $v_result = $this->_extractInString($p_filename);
        $this->_close();
    }
    else {
        $v_result = null;
    }
    return $v_result;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal