Lines Matching defs:rev1
385 * Returns revisions around rev1 and rev2
388 * @param int $rev1 oldest revision timestamp
391 * @return array with two arrays with revisions surrounding rev1 respectively rev2
393 public function getRevisionsAround($rev1, $rev2, $max = 50)
396 $rev1 = max($rev1, 0);
400 if ($rev2 < $rev1) {
402 $rev2 = $rev1;
403 $rev1 = $rev;
414 //collect revisions around rev1
415 $index = array_search($rev1, $allRevs);
418 [$revs1, , , , , ] = $this->retrieveRevisionsAround($rev1, $max);