Home
last modified time | relevance | path

Searched refs:rev1 (Results 1 – 4 of 4) sorted by last modified time

/dokuwiki/inc/Ui/
H A DDiff.php19 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) {
[all...]
H A DMediaDiff.php83 $changelogRev1 = $changelog->getRevisionInfo($this->rev1);
168 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')];
181 $form->setHiddenField('rev2[0]', $rev1);
197 $rev1 = $this->RevInfo1->isCurrent() ? '' : $this->RevInfo1->val('date');
212 $rev1Src = ml($this->id, ['rev' => $rev1, 'h' => $rev1Size[1], 'w' => $rev1Size[0]]);
241 $rev1 = $this->RevInfo1->isCurrent() ? '' : (int)$this->RevInfo1->val('date');
254 $rev1Meta = new JpegMeta(mediaFN($this->id, $rev1));
267 media_preview($this->id, $auth, $rev1, $rev1Meta); // $auth not used in media_preview()?
277 media_preview_buttons($this->id, $auth, $rev1); // $auth used in media_preview_buttons()
H A DPageDiff.php123 $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')];
350 // retrieve revisions used in dropdown selectors, even when rev1 o
494 diffViewlink($linktype, $rev1, $rev2 = null) global() argument
[all...]
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php385 * Returns revisions around rev1 and rev2
388 * @param int $rev1 oldest revision timestamp
391 * @return array with two arrays with revisions surrounding rev1 respectively rev2
393 public function getRevisionsAround($rev1, $rev2, $max = 50)
396 $rev1 = max($rev1, 0);
400 if ($rev2 < $rev1) {
402 $rev2 = $rev1;
403 $rev1 = $rev;
414 //collect revisions around rev1
383 getRevisionsAround($rev1, $rev2, $max = 50) global() argument
[all...]