From: Ariel Glenn Date: Fri, 28 Jan 2011 19:16:16 +0000 (+0000) Subject: open a series of files for xml input, if supplied (used for multiple xml prefetch... X-Git-Tag: 1.31.0-rc.0~32317 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=27a9a7409994a6df38fcbc90e549e6a563133e3f;p=lhc%2Fweb%2Fwiklou.git open a series of files for xml input, if supplied (used for multiple xml prefetch files) --- diff --git a/maintenance/backupPrefetch.inc b/maintenance/backupPrefetch.inc index b693eb0d6f..d3c4e790db 100644 --- a/maintenance/backupPrefetch.inc +++ b/maintenance/backupPrefetch.inc @@ -45,9 +45,12 @@ class BaseDump { var $atPageEnd = false; var $lastPage = 0; var $lastRev = 0; + var $infiles = null; function BaseDump( $infile ) { + $this->infiles = explode(';',$infile); $this->reader = new XMLReader(); + $infile = array_shift($this->infiles); $this->reader->open( $infile ); } @@ -101,7 +104,12 @@ class BaseDump { $this->atPageEnd = false; } } else { - $this->atEnd = true; + $this->close(); + if (count($this->infiles)) { + $infile = array_shift($this->infiles); + $this->reader->open( $infile ); + $this->atEnd = false; + } } }