Beispiel #1
0
 /**
  * Extract the file to the given location.
  * If there is an error in the extraction, it is communicated to the optional 'error_callback'
  * instead of raising an exception (which stops the script).
  * @param string $path
  * @param WEBCORE_CALLBACK $error_callback
  */
 public function extract_to($path, $error_callback = null)
 {
     $url = new FILE_URL($path);
     $url->append($this->normalized_name);
     ensure_path_exists($url->path());
     $this->extracted_name = $url->as_text();
     $this->_extract_to($this->extracted_name, $error_callback);
 }