Welcome to mirror list, hosted at ThFree Co, Russian Federation.

UncompressInterface.php « Unzip « core - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 36a95143d2968e93d4b14af0e77f306425c29c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
 * Piwik - Open source web analytics
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 * @category Piwik
 * @package Piwik
 */

namespace Piwik\Unzip;

/**
 * Unzip interface
 *
 * @package Piwik
 * @subpackage Unzip
 */
interface UncompressInterface
{
    /**
     * Constructor
     *
     * @param string $filename  Name of the .zip archive
     */
    public function __construct($filename);

    /**
     * Extract files from archive to target directory
     *
     * @param string $pathExtracted  Absolute path of target directory
     * @return mixed  Array of filenames if successful; or 0 if an error occurred
     */
    public function extract($pathExtracted);

    /**
     * Get error status string for the latest error
     *
     * @return string
     */
    public function errorInfo();
}