Example #1
0
 /**
  * Callback function for each revision, child classes should override
  * processRevision instead.
  * @param Database $rev
  */
 public function handleRevision($rev)
 {
     $title = $rev->getTitle();
     if (!$title) {
         $this->error("Got bogus revision with null title!");
         return;
     }
     $this->count++;
     if (isset($this->from)) {
         if ($this->from != $title) {
             return;
         }
         $this->output("Skipped " . ($this->count - 1) . " pages\n");
         $this->count = 1;
         $this->from = null;
     }
     $this->processRevision($rev);
 }