silverstripe-framework/filesystem/Archive.php
Andrew O'Neil 0793806405 Add some basic archive functionality
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40772 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-23 23:07:58 +00:00

19 lines
453 B
PHP

<?php
abstract class Archive extends Object {
static function open($filename) {
if(substr($filename, strlen($filename) - strlen('.tar.gz')) == '.tar.gz' ||
substr($filename, strlen($filename) - strlen('.tar.bz2')) == '.tar.bz2' ||
substr($filename, strlen($filename) - strlen('.tar')) == '.tar') {
return new TarballArchive($filename);
}
}
function extractTo($destination, $entries = null) {
}
function listing($path) {
}
}
?>