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

Interface.php « Unzip « core - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4935789f023b2167c9758f8f7bfe875bb0587659 (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
<?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
 */

/**
 * Unzip interface
 *
 * @package Piwik
 * @subpackage Piwik_Unzip
 */
interface Piwik_Unzip_Interface
{
	/**
	 * 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();
}