1 <?php
2 /**
3 * @package Joomla.Platform
4 * @subpackage Archive
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 /**
13 * Archieve class interface
14 *
15 * @since 12.1
16 */
17 interface JArchiveExtractable
18 {
19 /**
20 * Extract a compressed file to a given path
21 *
22 * @param string $archive Path to archive to extract
23 * @param string $destination Path to extract archive to
24 * @param array $options Extraction options [may be unused]
25 *
26 * @return boolean True if successful
27 *
28 * @since 12.1
29 */
30 public function extract($archive, $destination, array $options = array());
31
32 /**
33 * Tests whether this adapter can unpack files on this computer.
34 *
35 * @return boolean True if supported
36 *
37 * @since 12.1
38 */
39 public static function isSupported();
40 }
41