1 <?php
2 3 4 5 6 7
8 abstract class Archive extends Object {
9 10 11
12 static function open($filename) {
13 if(substr($filename, strlen($filename) - strlen('.tar.gz')) == '.tar.gz' ||
14 substr($filename, strlen($filename) - strlen('.tar.bz2')) == '.tar.bz2' ||
15 substr($filename, strlen($filename) - strlen('.tar')) == '.tar') {
16 return new TarballArchive($filename);
17 }
18 }
19
20 function ($destination, $entries = null) {
21 }
22
23 function listing($path) {
24 }
25 }
26
27 ?>
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the
Silverstripe Forums to ask development related questions.
-