We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3116df8 commit d76ccb0Copy full SHA for d76ccb0
unzipper.php
@@ -18,6 +18,9 @@
18
$timeend = microtime(TRUE);
19
$time = $timeend - $timestart;
20
21
+/**
22
+ * Class Unzipper
23
+ */
24
class Unzipper {
25
public $localdir = '.';
26
public $zipfiles = array();
@@ -65,6 +68,12 @@ public function __construct() {
65
68
}
66
69
67
70
71
+ /**
72
+ * Checks file extension and calls suitable extractor functions.
73
+ *
74
+ * @param $archive
75
+ * @param $destination
76
77
public static function extract($archive, $destination) {
78
$ext = pathinfo($archive, PATHINFO_EXTENSION);
79
if ($ext === 'zip') {
0 commit comments