Example #1
0
 /**
  * @see File_Archive_Reader::getFileList()
  */
 function getFileList()
 {
     $list = parent::getFileList();
     $result = array();
     foreach ($list as $name) {
         $result[] = $this->modifyName($name);
     }
     return $result;
 }
Example #2
0
 /**
  * $source is the reader to filter
  */
 function File_Archive_Reader_Filter($predicate, &$source)
 {
     parent::File_Archive_Reader_Relay($source);
     $this->predicate = $predicate;
 }
Example #3
0
 /**
  * @see File_Archive_Reader::getFilename()
  */
 function getFilename()
 {
     return $this->symbolic . parent::getFilename();
 }
Example #4
0
 /**
  * @see File_Archive_Reader::makeWriterRemoveFiles()
  */
 function makeWriterRemoveFiles($pred)
 {
     //The reader needs to be open so that the base dir is found
     $error = $this->next();
     if (PEAR::isError($error)) {
         return $error;
     }
     return parent::makeWriterRemoveFiles($pred);
 }
Example #5
0
 /**
  * @see File_Archive_Reader::close()
  */
 function close()
 {
     $error = parent::close();
     $this->currentIndex = 0;
     return $error;
 }
Example #6
0
 /**
  * $source is the reader to filter
  */
 function File_Archive_Reader_Select($filename, &$source)
 {
     parent::File_Archive_Reader_Relay($source);
     $this->filename = $filename;
 }
Example #7
0
 /**
  * @see File_Archive_Reader::tell()
  */
 function tell()
 {
     if ($this->source === null) {
         return 0;
     } else {
         return parent::tell();
     }
 }