Esempio n. 1
0
 function Close(STREAMWriterInterface $h = NULL)
 {
     if (!sizeof($this->list)) {
         if ($this->zip->open($this->tmpfile, ZIPARCHIVE::CREATE) !== true) {
             throw new ADEIException(translate("Can't open/create ZIP archive (%s)", $this->tmpfile));
         }
         $this->zip->addFromString("no_data_available", "");
         $this->zip->close();
     }
     /*
         $this->zip->close();
     */
     parent::Close($h);
 }
Esempio n. 2
0
 function Close(STREAMWriterInterface $h = NULL)
 {
     if (!$this->block_mode) {
         $res = $this->ClosePipes($h);
         if ($res) {
             return $res . parent::Close($h);
         }
     }
     return parent::Close($h);
 }