1 | <?php |
||
19 | class Directory extends Abstraction |
||
20 | { |
||
21 | /** |
||
22 | * Validate path. |
||
23 | * |
||
24 | * @param string $path |
||
25 | * @return boolean |
||
26 | */ |
||
27 | public function isPathValid($path) |
||
31 | |||
32 | /** |
||
33 | * If 'tar' can't compress with the requested compressor this will return false. |
||
34 | * |
||
35 | * @param \phpbu\App\Backup\Target $target |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function canCompress(Target $target) |
||
42 | 3 | ||
43 | 3 | /** |
|
44 | 1 | * Compress the configured directory. |
|
45 | * |
||
46 | * @param \phpbu\App\Backup\Target $target |
||
47 | * @param \phpbu\App\Result $result |
||
48 | * @return string |
||
49 | * @throws \phpbu\App\Exception |
||
50 | */ |
||
51 | public function compress(Target $target, Result $result) |
||
56 | |||
57 | 1 | /** |
|
58 | 1 | * Returns the executable for this action. |
|
59 | 1 | * |
|
60 | 1 | * @param \phpbu\App\Backup\Target $target |
|
61 | 1 | * @return \phpbu\App\Cli\Executable |
|
62 | 1 | */ |
|
63 | 1 | public function getExecutable(Target $target) { |
|
73 | |||
74 | /** |
||
75 | * Get final archive name. |
||
76 | * |
||
77 | * @param \phpbu\App\Backup\Target $target |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getArchiveFile(Target $target) |
||
84 | } |
||
85 |