Home
last modified time | relevance | path

Searched refs:rev (Results 1 – 25 of 36) sorted by path

12

/dokuwiki/
H A Dfeed.php
/dokuwiki/inc/
H A DAjax.php244 $rev = false;
245 if (isset($REV) && !$JUMPTO) $rev = $REV;
248 tpl_mediaFileDetails($image, $rev);
H A DDifferenceEngine.php543 * $rev = $diff->reverse();
549 $rev = $this;
550 $rev->edits = array();
552 $rev->edits[] = $edit->reverse();
554 return $rev;
636 $rev = $this->reverse();
637 if (serialize($to_lines) != serialize($rev->orig()))
639 if (serialize($from_lines) != serialize($rev->closing()))
H A Dcommon.php227 $info['rev'] = $REV;
252 $info['rev'] = $REV;
510 if (isset($urlParameters['rev']) && !$urlParameters['rev']) unset($urlParameters['rev']);
624 if (isset($more['rev']) && !$more['rev']) unset($more['rev']);
1057 * @param string|int $rev timestamp when a revision of wikitext is desired argument
1060 function rawWiki($id, $rev
1210 rawWikiSlices($range, $id, $rev = '') global() argument
1335 notify($id, $who, $rev = '', $summary = '', $minor = false, $replace = array(), $current_rev = false) global() argument
[all...]
H A Ddeprecated.php494 * @param int|null $rev Old revision if any
500 public function send_diff($subscriber_mail, $template, $id, $rev = null, $summary = '') {
503 return $subscriptionSender->sendPageDiff($subscriber_mail, $template, $id, $rev, $summary);
514 * @param int|bool $rev Old revision if any
518 public function send_media_diff($subscriber_mail, $template, $id, $rev = false) {
521 return $subscriptionSender->sendMediaDiff($subscriber_mail, $template, $id, $rev);
498 send_diff($subscriber_mail, $template, $id, $rev = null, $summary = '') global() argument
516 send_media_diff($subscriber_mail, $template, $id, $rev = false) global() argument
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php43 * @param string|int $rev empty string or revision timestamp
46 abstract protected function getFilename($rev = '');
58 * @param int $rev timestamp of current page
59 * @return bool true if $rev is current revision, otherwise false
61 public function isCurrentRevision($rev)
63 return $rev == $this->currentRevision();
69 * @param int $rev revision timestamp
70 * @return bool true if $rev is last revision, otherwise false
72 public function isLastRevision($rev = null)
74 return $rev
53 isCurrentRevision($rev) global() argument
64 isLastRevision($rev = null) global() argument
137 getRevisionInfo($rev, $retrieveCurrentRevInfo = true) global() argument
313 getRelativeRevision($rev, $direction) global() argument
478 retrieveRevisionsAround($rev, $max) global() argument
671 traceCurrentRevision($rev) global() argument
[all...]
H A DChangeLogTrait.php106 * If file larger than $chunk_size, only chunk is read that could contain $rev.
108 * When reference timestamp $rev is outside time range of changelog, readloglines() will return
109 * lines in first or last chunk, but they obviously does not contain $rev.
111 * @param int $rev revision timestamp
117 protected function readloglines($rev) argument
157 if ($finger_rev > $rev) {
165 // could not find chunk, assume requested rev is missing
H A DMediaChangeLog.php23 * @param string|int $rev empty string or revision timestamp
26 protected function getFilename($rev = '')
28 return mediaFN($this->id, $rev);
27 getFilename($rev = '') global() argument
H A DPageChangeLog.php23 * @param string|int $rev empty string or revision timestamp
26 protected function getFilename($rev = '')
28 return wikiFN($this->id, $rev);
27 getFilename($rev = '') global() argument
H A 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
[all...]
/dokuwiki/inc/File/
H A DMediaFile.php10 protected $rev;
24 * @param string|int $rev optional revision
26 public function __construct($id, $rev = '')
29 $this->path = mediaFN($id, $rev);
30 $this->rev = $rev;
44 return $this->rev;
25 __construct($id, $rev = '') global() argument
H A DMediaResolver.php11 public function resolveId($id, $rev = '', $isDateAt = false) argument
13 return cleanID(parent::resolveId($id, $rev, $isDateAt));
H A DPageFile.php43 public function getPath($rev = '') argument
45 return wikiFN($this->id, $rev);
50 * similar to function rawWiki($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); // retriev
[all...]
H A DPageResolver.php16 public function resolveId($id, $rev = '', $isDateAt = false)
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)
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
17 resolveId($id, $rev = '', $isDateAt = false) global() argument
54 resolveStartPage($id, $rev, $isDateAt) global() argument
83 resolveAutoPlural($id, $rev, $isDateAt) global() argument
[all...]
H A DResolver.php28 * @param string|int|false $rev The revision time to use when resolving
32 public function resolveId($id, $rev = '', $isDateAt = false)
33 resolveId($id, $rev = '', $isDateAt = false) global() argument
/dokuwiki/inc/Remote/
H A DApiCore.php396 * @param int $rev Revision timestamp to access an older revision
401 public function getPage($page, $rev = 0)
403 $page = $this->checkPage($page, $rev, false);
405 $text = rawWiki($page, $rev);
406 if (!$text && !$rev) {
425 * @param int $rev revision timestamp
430 public function getPageHTML($page, $rev = 0)
432 $page = $this->checkPage($page, $rev);
434 return (string)p_wiki_xhtml($page, $rev, false);
445 * @param int $rev revisio
217 rawPage($id, $rev = '') global() argument
299 htmlPage($id, $rev = '') global() argument
474 pageInfo($id, $rev = '') global() argument
[all...]
/dokuwiki/inc/Subscriptions/
H A 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['i
[all...]
H A DMediaSubscriptionSender.php15 * @param int|bool $rev Old revision if any
18 public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false)
27 'MEDIA' => ml($id, $current_rev ? ('rev=' . $current_rev) : '', true, '&', true),
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);
21 sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false) global() argument
H A DPageSubscriptionSender.php17 * @param int|null $rev Old revision if any
23 public function sendPageDiff($subscriber_mail, $template, $id, $rev = null, $summary = '', $current_rev = null)
30 'NEWPAGE' => wl($id, $current_rev ? ('rev=' . $current_rev) : '', true, '&'),
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);
26 sendPageDiff($subscriber_mail, $template, $id, $rev = null, $summary = '', $current_rev = null) global() argument
H A DSubscriptionSender.php23 * @param string $rev The revision of the page, set to the current revision of the page $id if not set
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/Ui/
H A DMediaDiff.php63 // retrieve requested rev or rev2
96 $rev = $isCurrent ? '' : $RevInfo->val('date');
97 $meta = new JpegMeta(mediaFN($this->id, $rev));
100 'previewSize' => media_image_preview_size($this->id, $rev, $meta)
131 // retrieve form parameters: rev, rev2, difftype
212 $rev1Src = ml($this->id, ['rev' => $rev1, 'h' => $rev1Size[1], 'w' => $rev1Size[0]]);
213 $rev2Src = ml($this->id, ['rev' => $rev2, 'h' => $rev1Size[1], 'w' => $rev1Size[0]]);
H A 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');
H A DPageDiff.php103 // retrieve requested rev or rev2
120 if (!$INPUT->has('rev') && !$INPUT->has('rev2')) {
154 $rev = $isCurrent ? '' : $RevInfo->val('date');
155 $text = rawWiki($this->id, $rev);
187 // retrieve form parameters: rev, rev2, difftype
434 foreach ($revs as $rev) {
435 $info = $changelog->getRevisionInfo($rev);
443 $options[$rev] = [
449 'attrs' => ['title' => $rev]
452 ($side == 'older' && ($rev2 && $rev >
[all...]
H A 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');
H A DRevisions.php79 foreach ($revlist as $rev) {
80 $revisions[] = $changelog->getRevisionInfo($rev);

12