| 1 | <?php |
||
| 7 | class ZipArchiveAdapter implements ZipInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ZipArchive |
||
| 11 | */ |
||
| 12 | protected $oZipArchive; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $filename; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $filename |
||
| 21 | * @throws \Exception Could not open $this->filename for writing. |
||
| 22 | * @return mixed |
||
| 23 | */ |
||
| 24 | public function open($filename) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return $this |
||
| 40 | * @throws \Exception Could not close zip file $this->filename. |
||
| 41 | */ |
||
| 42 | public function close() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param $localname |
||
| 52 | * @param $contents |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | public function addFromString($localname, $contents) |
||
| 59 | } |
||
| 60 |