$this->addOption( 'verbose', 'Output information about each file.', false, false, 'v' );
$this->addOption( 'start', 'Name of file to start with', false, true );
$this->addOption( 'end', 'Name of file to end with', false, true );
$this->addOption( 'verbose', 'Output information about each file.', false, false, 'v' );
$this->addOption( 'start', 'Name of file to start with', false, true );
$this->addOption( 'end', 'Name of file to end with', false, true );
$end = str_replace( ' ', '_', $this->getOption( 'end', '' ) ); // page on img_name
$count = 0;
$end = str_replace( ' ', '_', $this->getOption( 'end', '' ) ); // page on img_name
$count = 0;
if ( strlen( $end ) ) {
$conds[] = "img_name <= {$dbr->addQuotes( $end )}";
}
$res = $dbr->select( 'image', '*', $conds,
if ( strlen( $end ) ) {
$conds[] = "img_name <= {$dbr->addQuotes( $end )}";
}
$res = $dbr->select( 'image', '*', $conds,
foreach ( $res as $row ) {
$file = $repo->newFileFromRow( $row );
$headers = $file->getStreamHeaders();
foreach ( $res as $row ) {
$file = $repo->newFileFromRow( $row );
$headers = $file->getStreamHeaders();
if ( !$status->isGood() ) {
$this->error( "Encountered error: " . print_r( $status, true ) );
}
if ( !$status->isGood() ) {
$this->error( "Encountered error: " . print_r( $status, true ) );
}