* Returns the name of the file or files which are
* being written to, if there are any.
*/
- function getFilename() {
+ function getFilenames() {
return NULL;
}
}
}
}
- function getFilename() {
+ function getFilenames() {
return $this->filename;
}
}
$this->sink->closeAndRename( $newname, $open );
}
- function getFilename() {
- return $this->sink->getFilename();
+ function getFilenames() {
+ return $this->sink->getFilenames();
}
/**
}
}
- function getFilename() {
+ function getFilenames() {
$filenames = array();
for ( $i = 0; $i < $this->count; $i++ ) {
- $filenames[] = $this->sinks[$i]->getFilename();
+ $filenames[] = $this->sinks[$i]->getFilenames();
}
return $filenames;
}
}
if ( $this->checkpointFiles ) {
- $filenameList = (array)$this->egress->getFilename();
+ $filenameList = (array)$this->egress->getFilenames();
if ( count( $filenameList ) != count( $this->checkpointFiles ) ) {
throw new MWException("One checkpointfile must be specified for each output option, if maxtime is used.\n");
}
$offset += strlen( $chunk );
} while ( $chunk !== false && !feof( $input ) );
if ($this->maxTimeAllowed) {
- $filenameList = (array)$this->egress->getFilename();
+ $filenameList = (array)$this->egress->getFilenames();
// we wrote some stuff after last checkpoint that needs renamed
if (file_exists($filenameList[0])) {
$newFilenames = array();
$this->thisPage = "";
// this could be more than one file if we had more than one output arg
$checkpointFilenames = array();
- $filenameList = (array)$this->egress->getFilename();
+ $filenameList = (array)$this->egress->getFilenames();
$newFilenames = array();
$firstPageID = str_pad($this->firstPageWritten,9,"0",STR_PAD_LEFT);
$lastPageID = str_pad($this->lastPageWritten,9,"0",STR_PAD_LEFT);