Example #1
0
 /**
  * Get archive contents
  *
  * @return string/false
  */
 public function contents()
 {
     if ($this->_enabled) {
         for ($i = 0; $i < $this->_zip->numFiles; ++$i) {
             $this->_contents[$i] = $this->_zip->statIndex($i);
             $comment = $this->_zip->getCommentIndex($i);
             if ($comment) {
                 $this->_contents[$i]['comment'] = $comment;
             }
         }
         return !is_null($this->_contents) ? $this->_contents : false;
     }
     return false;
 }