Searched refs:rev1 (Results 1 – 7 of 7) sorted by relevance
| /dokuwiki/inc/Ui/ |
| H A D | Diff.php | 19 protected $rev1; // timestamp of older revision variable in dokuwiki\\Ui\\Diff 53 * @param int $rev1 older revision 57 public function compare($rev1, $rev2) argument 59 if ($rev2 < $rev1) [$rev1, $rev2] = [$rev2, $rev1]; 60 $this->rev1 = (int)$rev1; 99 $this->rev1 = $INPUT->int('rev'); 101 if ($this->rev2 <= $this->rev1) { 103 unset($this->rev1, $this->rev2); 110 [$rev1, $rev2] = $revs; 111 if ($rev2 < $rev1) [$rev1, $rev2] = [$rev2, $rev1]; [all …]
|
| H A D | PageDiff.php | 123 $REV = $this->rev1; // store revision back in $REV 141 $changelogRev1 = $changelog->getRevisionInfo($this->rev1); 168 } elseif (!$this->rev1 || $this->rev1 == $this->rev2) { 299 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')]; 306 $form->setHiddenField('rev2[0]', $rev1); 320 if ($rev1 && $rev2) { 322 $viewUrl = $this->diffViewlink('difflink', $rev1, $rev2); 348 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')]; 352 ($rev1 ?: $changelog->currentRevision()), 362 if (($index = array_search($rev1, $revs1)) !== false) { [all …]
|
| H A D | MediaDiff.php | 85 $changelogRev1 = $changelog->getRevisionInfo($this->rev1); 163 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')]; 176 $form->setHiddenField('rev2[0]', $rev1); 192 $rev1 = $this->RevInfo1->isCurrent() ? '' : $this->RevInfo1->val('date'); 207 … $rev1Src = ml($this->id, ['rev' => $rev1, 'h' => $rev1Size[1], 'w' => $rev1Size[0], 'fit' => 1]); 236 $rev1 = $this->RevInfo1->isCurrent() ? '' : (int)$this->RevInfo1->val('date'); 249 $rev1Meta = new JpegMeta(mediaFN($this->id, $rev1)); 262 echo (new Display(new MediaFile($this->id, $rev1)))->getDetailHtml(); 272 media_preview_buttons($this->id, $auth, $rev1);
|
| /dokuwiki/_test/tests/inc/ |
| H A D | changelog_getRevisionsAround.test.php | 48 $rev1 = 1362526767; 55 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max); 63 $rev1 = 1362526767; 72 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max); 76 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max); 80 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max); 88 $rev1 = 1362525899; 97 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max); 101 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max); 105 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max); [all …]
|
| /dokuwiki/_test/tests/Search/Collection/ |
| H A D | FrequencyCollectionTest.php | 160 $rev1 = explode(':', $idxRev->retrieveRow(1)); 161 sort($rev1); 162 $this->assertEquals(['4*0', '5*1'], $rev1);
|
| /dokuwiki/inc/ChangeLog/ |
| H A D | ChangeLog.php | 399 * @param int $rev1 oldest revision timestamp 404 public function getRevisionsAround($rev1, $rev2, $max = 50) argument 407 $rev1 = max($rev1, 0); 411 if ($rev2 < $rev1) { 413 $rev2 = $rev1; 414 $rev1 = $rev; 428 $index = array_search($rev1, $allRevs); 431 $result1 = $this->retrieveRevisionsAround($rev1, $max);
|
| /dokuwiki/_test/tests/Remote/ |
| H A D | ApiCoreTest.php | 292 $rev1 = filemtime(wikiFN('pageone')); 299 'revision' => $rev1, 335 $rev1 = filemtime($file); 349 $this->remote->call('core.getPage', ['page' => $id, 'rev' => $rev1]), 384 $rev1 = filemtime($file); 398 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => $rev1]), 434 $rev1 = filemtime($file); 457 'revision' => $rev1, 461 'size' => filesize(wikiFN($id, $rev1)), 466 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => $rev1]),
|