public function extract(tgz_extractor_handler $handler, file_progress $progress = null) {
        $this->mode = self::MODE_EXTRACT;
        $this->extract_or_list($handler, $progress);
        $results = $this->results;
        unset($this->results);
        return $results;
    }
public function extract(tgz_extractor_handler $handler, file_progress $progress = null) {
        $this->mode = self::MODE_EXTRACT;
        $this->extract_or_list($handler, $progress);
        $results = $this->results;
        unset($this->results);
        return $results;
    }
public function extract ( tgz_extractor_handler $ handler , file_progress $ progress = null ) { $ this -> mode = self :: MODE_EXTRACT ; $ this -> extract_or_list ( $ handler , $ progress ) ; $ results = $ this -> results ; unset ( $ this -> results ) ; return $ results ; }
Extracts the archive.

@param tgz_extractor_handler $handler Will be called for extracted files
@param file_progress $progress Optional progress reporting
@return array Array from archive path => true of processed files
@throws moodle_exception If there is any error processing the archive
Extracts the archive .