/** * $directory is the path of the directory that must be read * If $maxRecurs is specified, the subdirectories will be read up to a depth * of $maxRecurs. In particular, if $maxRecurs == 0, the subdirectories * won't be read. */ function File_Archive_Reader_Directory($directory, $symbolic = '', $maxRecurs = -1) { parent::File_Archive_Reader_Relay($tmp = null); $this->directory = empty($directory) ? '.' : $directory; $this->symbolic = $this->getStandardURL($symbolic); $this->maxRecurs = $maxRecurs; }
/** * $source is the reader to filter */ function File_Archive_Reader_Filter($predicate, &$source) { parent::File_Archive_Reader_Relay($source); $this->predicate = $predicate; }
function File_Archive_Reader_Uncompress(&$innerReader, $uncompressionLevel = -1) { parent::File_Archive_Reader_Relay($innerReader); $this->startReader =& $innerReader; $this->uncompressionLevel = $uncompressionLevel; }
function File_Archive_Reader_Multi() { parent::File_Archive_Reader_Relay($tmp = null); }
/** * $source is the reader to filter */ function File_Archive_Reader_Select($filename, &$source) { parent::File_Archive_Reader_Relay($source); $this->filename = $filename; }
function File_Archive_Reader_ChangeBaseName($oldBaseName, $newBaseName, &$source) { parent::File_Archive_Reader_Relay($source); $this->oldBaseName = $this->getStandardURL($oldBaseName); if (substr($this->oldBaseName, -1) == '/') { $this->oldBaseName = substr($this->oldBaseName, 0, -1); } $this->newBaseName = $this->getStandardURL($newBaseName); if (substr($this->newBaseName, -1) == '/') { $this->newBaseName = substr($this->newBaseName, 0, -1); } }
/** * for PHP5.3 By NetCommons 2009/11/05 * */ function File_Archive_Reader_ChangeName($source) { parent::File_Archive_Reader_Relay($source); }