You are here

function Archive_Tar::extractInString in Acquia Connector 6.2

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.

@access public

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

acquia_agent/archive_tar.inc, line 520

Class

Archive_Tar
Creates a (compressed) Tar archive

Code

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