1 | <?php |
||
13 | class IOHelper |
||
14 | { |
||
15 | /** |
||
16 | * |
||
17 | */ |
||
18 | public static function printDir() |
||
26 | |||
27 | /** |
||
28 | * @param string $dir |
||
29 | */ |
||
30 | public static function getDir($dir = "output/") |
||
60 | |||
61 | /** |
||
62 | * @param string $dir |
||
63 | */ |
||
64 | public static function cleandir($dir = "output") |
||
79 | |||
80 | /** |
||
81 | * @param $str |
||
82 | * @param $pathOutput |
||
83 | * @param $basePath |
||
84 | */ |
||
85 | public static function outputFile($str, $pathOutput, $basePath) |
||
90 | |||
91 | /** |
||
92 | * @param $source |
||
93 | * @param $destination |
||
94 | */ |
||
95 | public static function zipFile($source, $destination) |
||
101 | |||
102 | /** |
||
103 | * @param $source |
||
104 | * @param $destination |
||
105 | * @param $str |
||
106 | */ |
||
107 | public static function zipFileOntheFly($source, $destination, $str) |
||
113 | |||
114 | /** |
||
115 | * @param Filesystem $filesystem |
||
116 | */ |
||
117 | public static function makeZip(Filesystem $filesystem) |
||
124 | } |
||
125 |