| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | abstract class Archive_Base implements IArchive |
| 15: | { |
| 16: | protected static $fc; |
| 17: | protected static $binary_handler; |
| 18: | protected static $mapping_list; |
| 19: | private $files; |
| 20: | |
| 21: | public static function add_files($mArchive, $mFile) |
| 22: | { |
| 23: | return error('add: method not implemented'); |
| 24: | } |
| 25: | |
| 26: | public static function create_archive($mArchive, $mFiles) |
| 27: | { |
| 28: | return error('create: method not implemented'); |
| 29: | } |
| 30: | |
| 31: | public static function delete_files($mArchive, $mFile) |
| 32: | { |
| 33: | return error('delete: method not implemented'); |
| 34: | } |
| 35: | |
| 36: | public static function stat($mArchive) |
| 37: | { |
| 38: | return array(); |
| 39: | } |
| 40: | |
| 41: | static public function init($fc) |
| 42: | { |
| 43: | self::$fc = $fc; |
| 44: | } |
| 45: | |
| 46: | protected static function exec($cmd, $args) |
| 47: | { |
| 48: | return call_user_func_array('Util_Process_Safe::exec', func_get_args()); |
| 49: | } |
| 50: | |
| 51: | protected function add_file($name, array $stat = array()) |
| 52: | { |
| 53: | $files[] = $name; |
| 54: | } |
| 55: | |
| 56: | } |
| 57: | |
| 58: | ?> |
| 59: | |