Lines Matching defs:rev2
103 // retrieve requested rev or rev2
120 if (!$INPUT->has('rev') && !$INPUT->has('rev2')) {
142 $changelogRev2 = $changelog->getRevisionInfo($this->rev2);
161 if ($this->rev2 === false) {
168 } elseif (!$this->rev1 || $this->rev1 == $this->rev2) {
187 // retrieve form parameters: rev, rev2, difftype
299 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')];
306 $form->setHiddenField('rev2[0]', $rev1);
307 $form->setHiddenField('rev2[1]', $rev2);
320 if ($rev1 && $rev2) {
322 $viewUrl = $this->diffViewlink('difflink', $rev1, $rev2);
348 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')];
350 // retrieve revisions used in dropdown selectors, even when rev1 or rev2 is false
353 ($rev2 ?: $changelog->currentRevision())
369 if (($index = array_search($rev2, $revs2)) !== false) {
384 $rev1Navi .= $this->diffViewlink('diffprevrev', $rev1Prev, $rev2);
389 if ($rev1Next && ($rev1Next < $rev2)) {
390 $rev1Navi .= $this->diffViewlink('diffnextrev', $rev1Next, $rev2);
429 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')];
452 ($side == 'older' && ($rev2 && $rev >= $rev2))
471 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')];
480 $form->setHiddenField('rev2[1]', $rev2);
481 $input = $form->addDropdown('rev2[0]', $options)
486 $form->setHiddenField('rev2[0]', $rev1);
487 $input = $form->addDropdown('rev2[1]', $options)
488 ->val($rev2)->addClass('quickselect');
500 * @param int $rev2 newer revision or null for diff with current revision
503 protected function diffViewlink($linktype, $rev1, $rev2 = null)
508 if ($rev2 === null) {
517 'rev2[0]' => $rev1,
518 'rev2[1]' => $rev2,