示例#1
0
 /**
  * Read archive
  *
  * @param string $filename
  * @return bool
  */
 public function read($filename = false)
 {
     if ($this->_enabled && !empty($filename)) {
         $index = $this->_zip->locateName($filename, ZIPARCHIVE::FL_NODIR);
         if ($index) {
             return $this->_zip->getFromIndex((int) $index);
         }
     }
     return false;
 }