Home
last modified time | relevance | path

Searched refs:rev (Results 1 – 25 of 42) sorted by relevance

12

/dokuwiki/_test/tests/inc/
Dchangelog_getrelativerevision.test.php30 $rev = 1362525899;
36 $revs = $pagelog->getRelativeRevision($rev, $dir);
44 $rev = 1362525899;
49 $revs = $pagelog->getRelativeRevision($rev, $dir);
58 $rev = 1385051947;
64 touch(wikiFN($this->pageid), $rev);
67 $revs = $pagelog->getRelativeRevision($rev, $dir);
70 $revs = $pagelog->getRelativeRevision($rev, -$dir);
79 $rev = 1360110636;
85 $revs = $pagelog->getRelativeRevision($rev, $dir);
[all …]
Dchangelog_getlastrevisionat.test.php30 $rev = 1362525899;
35 $revs = $pagelog->getLastRevisionAt($rev);
44 $rev = 1385051947;
48 touch(wikiFN($this->pageid), $rev);
51 $revs = $pagelog->getLastRevisionAt($rev);
61 $rev = 1385051947;
65 touch(wikiFN($this->pageid), $rev);
67 $rev +=1;
70 $revs = $pagelog->getLastRevisionAt($rev);
80 $rev = 1360110636;
[all …]
Dchangelog_getrevisioninfo.test.php31 $rev = 1362525899;
36 $revs = $pagelog->getRevisionInfo($rev);
44 $rev = 1362525899;
49 $info = $pagelog->getRevisionInfo($rev);
52 $info = $pagelog->getRevisionInfo($rev);
60 $rev = 1362525899;
65 $info = $pagelog->getRevisionInfo($rev);
73 $rev = 1362525899;
78 $info = $pagelog->getRevisionInfo($rev);
86 $rev = 1374261194;
[all …]
Dcommon_pageinfo.test.php73 $rev = filemtime($filename);
84 $info['lastmod'] = $rev;
85 $info['currentrev'] = $rev;
109 $rev = filemtime($filename);
116 $info['lastmod'] = $rev;
117 $info['currentrev'] = $rev;
149 $rev = filemtime($filename);
150 $REV = $rev - 100;
162 $info['currentrev'] = $rev;
166 $this->assertEquals($rev-100, $REV);
[all …]
/dokuwiki/inc/File/
DPageResolver.php16 public function resolveId($id, $rev = '', $isDateAt = false) argument
30 $id = parent::resolveId($id, $rev, $isDateAt);
31 $id = $this->resolveStartPage($id, $rev, $isDateAt);
33 $id = $this->resolveAutoPlural($id, $rev, $isDateAt);
49 * @param string|int|false $rev
53 protected function resolveStartPage($id, $rev, $isDateAt) argument
59 if (page_exists($id . $conf['start'], $rev, true, $isDateAt)) {
62 } elseif (page_exists($id . noNS(cleanID($id)), $rev, true, $isDateAt)) {
65 } elseif (page_exists(substr($id, 0, -1), $rev, true, $isDateAt)) {
78 * @param int $rev
[all …]
DMediaFile.php10 protected $rev; variable in dokuwiki\\File\\MediaFile
24 * @param string|int $rev optional revision
26 public function __construct($id, $rev = '') argument
29 $this->path = mediaFN($id, $rev);
30 $this->rev = $rev;
44 return $this->rev;
DMediaResolver.php11 public function resolveId($id, $rev = '', $isDateAt = false) argument
13 return cleanID(parent::resolveId($id, $rev, $isDateAt));
DPageFile.php43 public function getPath($rev = '') argument
45 return wikiFN($this->id, $rev);
52 * @param int|false $rev timestamp when a revision of wikitext is desired
55 public function rawWikiText($rev = null) argument
57 if ($rev !== null) {
58 $revInfo = $rev ? $this->changelog->getRevisionInfo($rev) : false;
61 : io_readWikiPage($this->getPath($rev), $this->id, $rev); // retrieve from attic
DResolver.php28 * @param string|int|false $rev The revision time to use when resolving
32 public function resolveId($id, $rev = '', $isDateAt = false) argument
/dokuwiki/inc/Subscriptions/
DBulkSubscriptionSender.php84 foreach ($changes as $rev) {
86 $pagelog = new PageChangeLog($rev['id']);
88 !is_null($rev) && $rev['date'] >= $lastupdate &&
89 ($INPUT->server->str('REMOTE_USER') === $rev['user'] ||
90 $rev['type'] === DOKU_CHANGE_TYPE_MINOR_EDIT)
93 … $rev = ($revisions !== []) ? $pagelog->getRevisionInfo($revisions[0]) : null;
96 if (!is_null($rev) && $rev['date'] >= $lastupdate) {
98 $change_ids[] = $rev['id'];
198 $rev = $pagelog->getRevisions($n++, 1);
199 $rev = ($rev !== []) ? $rev[0] : null;
[all …]
DMediaSubscriptionSender.php15 * @param int|bool $rev Old revision if any
18 …public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false) argument
31 if ($rev && $conf['mediarevisions']) {
32 $trep['OLD'] = ml($id, "rev=$rev", true, '&', true);
38 if ($rev) {
39 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
DPageSubscriptionSender.php17 * @param int|null $rev Old revision if any
23 …public function sendPageDiff($subscriber_mail, $template, $id, $rev = null, $summary = '', $curren… argument
36 if ($rev) {
38 $trep['OLDPAGE'] = wl($id, "rev=$rev", true, '&');
40 $old_content = rawWiki($id, $rev);
70 if ($rev) {
71 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
DSubscriptionSender.php23 …* @param string $rev The revision of the page, set to the current revision of the page $id if not …
27 protected function getMessageID($id, $rev = null) argument
37 if (is_null($rev)) {
38 $rev = @filemtime(wikiFN($id));
41 return "<$id?rev=$rev@$listid>";
/dokuwiki/inc/ChangeLog/
DChangeLog.php43 * @param string|int $rev empty string or revision timestamp
46 abstract protected function getFilename($rev = ''); argument
58 * @param int $rev timestamp of current page
61 public function isCurrentRevision($rev) argument
63 return $rev == $this->currentRevision();
69 * @param int $rev revision timestamp
72 public function isLastRevision($rev = null) argument
74 return $rev === $this->lastRevision();
132 * @param int $rev revision timestamp
150 public function getRevisionInfo($rev, $retrieveCurrentRevInfo = true) argument
[all …]
DRevisionInfo.php177 $rev = $this->isCurrent() ? '' : $this->val('date');
182 if ($rev) $params += ['rev' => $rev];
185 $exists = file_exists(mediaFN($id, $rev));
188 $params = $rev ? ['rev' => $rev] : [];
192 $exists = page_exists($id, $rev);
222 $rev = $this->isCurrent() ? '' : $this->val('date');
223 $params = ($rev) ? ['rev' => $rev] : [];
234 $exists = file_exists(mediaFN($id, $rev));
238 $exists = page_exists($id, $rev);
307 $rev = $this->isCurrent() ? '' : $this->val('date');
[all …]
DPageChangeLog.php23 * @param string|int $rev empty string or revision timestamp
26 protected function getFilename($rev = '') argument
28 return wikiFN($this->id, $rev);
DMediaChangeLog.php23 * @param string|int $rev empty string or revision timestamp
26 protected function getFilename($rev = '') argument
28 return mediaFN($this->id, $rev);
/dokuwiki/inc/Ui/
DPageRevisions.php71 $rev = $info['date'];
74 $RevInfo->isCurrent($changelog->isCurrentRevision($rev));
81 $form->addCheckbox('rev2[]')->val($rev);
82 } elseif ($rev == $REV) {
83 $form->addCheckbox('rev2[]')->val($rev)->attr('checked', 'checked');
84 } elseif (page_exists($this->id, $rev)) {
85 $form->addCheckbox('rev2[]')->val($rev);
87 $form->addCheckbox('')->val($rev)->attr('disabled', 'disabled');
DMediaRevisions.php72 $rev = $info['date'];
74 $RevInfo->isCurrent($changelog->isCurrentRevision($rev));
81 $form->addCheckbox('rev2[]')->val($rev);
82 } elseif (file_exists(mediaFN($this->id, $rev))) {
83 $form->addCheckbox('rev2[]')->val($rev);
85 $form->addCheckbox('')->val($rev)->attr('disabled', 'disabled');
DRevisions.php79 foreach ($revlist as $rev) {
80 $revisions[] = $changelog->getRevisionInfo($rev);
/dokuwiki/inc/Remote/
DApiCore.php397 * @param int $rev Revision timestamp to access an older revision
402 public function getPage($page, $rev = 0) argument
404 $page = $this->checkPage($page, $rev, false);
406 $text = rawWiki($page, $rev);
407 if (!$text && !$rev) {
426 * @param int $rev revision timestamp
431 public function getPageHTML($page, $rev = 0) argument
433 $page = $this->checkPage($page, $rev);
435 return (string)p_wiki_xhtml($page, $rev, false);
446 * @param int $rev revision timestamp
[all …]
/dokuwiki/inc/
Dpageutils.php280 * @param string|int $rev empty or revision timestamp
285 function page_exists($id, $rev = '', $clean = true, $date_at = false) argument
289 if ($rev !== '' && $date_at) {
291 $pagelog_rev = $pagelog->getLastRevisionAt($rev);
293 $rev = $pagelog_rev;
295 return file_exists(wikiFN($id, $rev, $clean));
302 * @param string|int $rev empty or revision timestamp
307 function media_exists($id, $rev = '', $clean = true, $date_at = false) argument
309 if ($rev !== '' && $date_at) {
311 $changelog_rev = $changeLog->getLastRevisionAt($rev);
[all …]
/dokuwiki/inc/lang/sk/
Donceexisted.txt3 …ntrolovať zoznam **predošlých revízií** a zistíte, kedy a prečo bola stránka zmazaná. Tiež získate…
/dokuwiki/_test/tests/Remote/
DApiCoreTest.php507 $rev = [];
512 $rev[$i] = filemtime($file);
519 $this->assertEquals($rev[5], $versions[0]['revision']);
520 $this->assertEquals($rev[4], $versions[1]['revision']);
521 $this->assertEquals($rev[3], $versions[2]['revision']);
522 $this->assertEquals($rev[2], $versions[3]['revision']);
523 $this->assertEquals($rev[1], $versions[4]['revision']);
524 $this->assertEquals($rev[0], $versions[5]['revision']);
530 $this->assertEquals($rev[4], $versions[0]['revision']);
531 $this->assertEquals($rev[3], $versions[1]['revision']);
[all …]
/dokuwiki/inc/lang/ku/
Ddiff.txt3 Li vê derê cuyawaziyên nav revîziyona hilbijartî û verziyona aniha tên nîşan dan.

12