Lines Matching refs:rev

43      * @param string|int $rev empty string or revision timestamp
46 abstract protected function getFilename($rev = ''); argument
65 * @param int $rev timestamp of current page
68 public function isCurrentRevision($rev) argument
70 return $rev == $this->currentRevision();
76 * @param int $rev revision timestamp
79 public function isLastRevision($rev = null) argument
81 return $rev === $this->lastRevision();
139 * @param int $rev revision timestamp
157 public function getRevisionInfo($rev, $retrieveCurrentRevInfo = true) argument
159 $rev = max(0, $rev);
160 if (!$rev) return false;
168 if (isset($this->cache[$this->id][$rev])) {
169 return $this->cache[$this->id][$rev];
173 $result = $this->readloglines($rev);
186 return $this->cache[$this->id][$rev] ?? false;
324 * @param int $rev revision timestamp used as start date
332 public function getRelativeRevision($rev, $direction) argument
334 $rev = max($rev, 0);
338 if (!$direction || ($direction > 0 && $this->isCurrentRevision($rev))) {
343 $result = $this->readloglines($rev);
368 … if (($direction > 0 && $info['date'] > $rev) || ($direction < 0 && $info['date'] < $rev)) {
379 && ($info['date'] == $rev || ($revCounter > 0 && !$relativeRev))
412 $rev = $rev2;
414 $rev1 = $rev;
480 } elseif ($rev = $this->getRelativeRevision($date_at + 1, -1)) {
482 return $rev;
495 * @param int $rev revision timestamp
507 protected function retrieveRevisionsAround($rev, $max) argument
514 $result = $this->readloglines($rev);
527 if ($info['date'] >= $rev) {
838 * @param int $rev
840 public function traceCurrentRevision($rev) argument
842 if ($rev > $this->lastRevision()) {
843 $rev = $this->currentRevision();
845 return $rev;