Lines Matching defs:direction
317 * @param int $direction give position of returned revision with respect to $rev;
323 public function getRelativeRevision($rev, $direction)
326 $direction = (int)$direction;
328 //no direction given or last rev, so no follow-up
329 if (!$direction || ($direction > 0 && $this->isCurrentRevision($rev))) {
346 if ($direction > 0) {
356 //look for revs older/earlier then reference $rev and select $direction-th one
357 if (($direction > 0 && $info['date'] > $rev) || ($direction < 0 && $info['date'] < $rev)) {
359 if ($revCounter == abs($direction)) {
369 && (!($tail == $eof && $direction > 0) && !($head == 0 && $direction < 0));
372 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, $direction);