예제 #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);
 }
예제 #2
0
파일: iofilter.php 프로젝트: nicolaisi/adei
 function Close(STREAMWriterInterface $h = NULL)
 {
     if (!$this->block_mode) {
         $res = $this->ClosePipes($h);
         if ($res) {
             return $res . parent::Close($h);
         }
     }
     return parent::Close($h);
 }