1: <?php
2: /**
3: * Copyright (C) Apis Networks, Inc - All Rights Reserved.
4: *
5: * Unauthorized copying of this file, via any medium, is
6: * strictly prohibited without consent. Any dissemination of
7: * material herein is prohibited.
8: *
9: * For licensing inquiries email <licensing@apisnetworks.com>
10: *
11: * Written by Matt Saladna <matt@apisnetworks.com>, May 2017
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: