Lines Matching refs:rev

43      * @param string|int $rev empty string or revision timestamp
46 abstract protected function getFilename($rev = ''); argument
58 * @param int $rev timestamp of current page
61 public function isCurrentRevision($rev) argument
63 return $rev == $this->currentRevision();
69 * @param int $rev revision timestamp
72 public function isLastRevision($rev = null) argument
74 return $rev === $this->lastRevision();
132 * @param int $rev revision timestamp
150 public function getRevisionInfo($rev, $retrieveCurrentRevInfo = true) argument
152 $rev = max(0, $rev);
153 if (!$rev) return false;
161 if (isset($this->cache[$this->id][$rev])) {
162 return $this->cache[$this->id][$rev];
166 $result = $this->readloglines($rev);
179 return $this->cache[$this->id][$rev] ?? false;
317 * @param int $rev revision timestamp used as start date
325 public function getRelativeRevision($rev, $direction) argument
327 $rev = max($rev, 0);
331 if (!$direction || ($direction > 0 && $this->isCurrentRevision($rev))) {
336 $result = $this->readloglines($rev);
361 … if (($direction > 0 && $info['date'] > $rev) || ($direction < 0 && $info['date'] < $rev)) {
372 && ($info['date'] == $rev || ($revCounter > 0 && !$relativeRev))
405 $rev = $rev2;
407 $rev1 = $rev;
473 } elseif ($rev = $this->getRelativeRevision($date_at + 1, -1)) {
475 return $rev;
488 * @param int $rev revision timestamp
500 protected function retrieveRevisionsAround($rev, $max) argument
507 $result = $this->readloglines($rev);
520 if ($info['date'] >= $rev) {
704 * @param int $rev
706 public function traceCurrentRevision($rev) argument
708 if ($rev > $this->lastRevision()) {
709 $rev = $this->currentRevision();
711 return $rev;