Home
last modified time | relevance | path

Searched refs:rev (Results 1 – 25 of 36) sorted by last modified time

12

/dokuwiki/inc/
H A Dpageutils.php280 * @param string|int $rev empty or revision timestamp
285 function page_exists($id, $rev = '', $clean = true, $date_at = false)
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)
309 if ($rev !== '' && $date_at) {
311 $changelog_rev = $changeLog->getLastRevisionAt($rev);
281 page_exists($id, $rev = '', $clean = true, $date_at = false) global() argument
303 media_exists($id, $rev = '', $clean = true, $date_at = false) global() argument
328 wikiFN($raw_id, $rev = '', $clean = true) global() argument
450 mediaFN($id, $rev = '', $clean = true) global() argument
556 resolve_mediaid($ns, & $media, & $exists, $rev = '', $date_at = false) global() argument
574 resolve_pageid($ns, & $page, & $exists, $rev = '', $date_at = false) global() argument
[all...]
H A Dparserutils.php71 * @param string|int $rev revision timestamp or empty string
79 function p_wiki_xhtml($id, $rev = '', $excuse = true, $date_at = '')
81 $file = wikiFN($id, $rev);
89 if ($rev || $date_at) {
92 $ret = p_render('xhtml', p_get_instructions(io_readWikiPage($file, $id, $rev)), $info, $date_at);
77 p_wiki_xhtml($id, $rev = '', $excuse = true, $date_at = '') global() argument
H A Dtemplate.php944 if ($INFO['rev']) {
1207 $url = ml($IMG, ['cache' => $INPUT->str('cache'), 'rev' => $REV], true, '&');
1208 $src = ml($IMG, ['cache' => $INPUT->str('cache'), 'rev' => $REV, 'w' => $w, 'h' => $h], true, '&');
1508 * @param boolean $rev
1512 function tpl_mediaFileDetails($image, $rev)
1524 if ($rev && !file_exists(mediaFN($image, $rev))) $rev = false;
1550 $attributes = $rev ? ['rev'
1436 tpl_mediaFileDetails($image, $rev) global() argument
[all...]
H A Dio.php66 * $data[3] rev: The page revision, false for current wiki pages.
70 * @param bool|int|string $rev revision timestamp argument
75 function io_readWikiPage($file, $id, $rev = false)
77 if (empty($rev)) {
78 $rev = false;
80 $data = [[$file, true], getNS($id), noNS($id), $rev];
198 * $data[3] rev: The page revision, false for current wiki pages.
203 * @param int|bool|string $rev timestamp of revision
208 function io_writeWikiPage($file, $content, $id, $rev = false)
210 if (empty($rev)) {
189 io_writeWikiPage($file, $content, $id, $rev = false) global() argument
[all...]
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 DAjax.php244 $rev = false;
245 if (isset($REV) && !$JUMPTO) $rev = $REV;
248 tpl_mediaFileDetails($image, $rev);
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
H A Dmedia.php1007 * @param string|int $rev revision timestamp or empty string
1009 function media_tab_view($image, $ns, $auth = null, $rev = '')
1015 $meta = new JpegMeta(mediaFN($image, $rev));
1016 media_preview($image, $auth, $rev, $meta);
1017 media_preview_buttons($image, $auth, $rev);
1018 media_details($image, $auth, $rev, $meta);
1077 * @param int|string $rev revision timestamp or empty string
1082 function media_preview($image, $auth, $rev = '', $meta = false)
1085 $size = media_image_preview_size($image, $rev, $meta);
1092 if ($rev) {
954 media_tab_view($image, $ns, $auth = null, $rev = '') global() argument
1025 media_preview($image, $auth, $rev = '', $meta = false) global() argument
1062 media_preview_buttons($image, $auth, $rev = '') global() argument
1128 media_image_preview_size($image, $rev, $meta = false, $size = 500) global() argument
1203 media_details($image, $auth, $rev = '', $meta = false) global() argument
1306 media_restore($image, $rev, $auth) global() argument
[all...]
H A Dfetch.functions.php145 * @param string $rev
150 function checkFileStatus(&$media, &$file, $rev = '', $width = 0, $height = 0)
180 $file = mediaFN($media, $rev);
144 checkFileStatus(& $media, & $file, $rev = '', $width = 0, $height = 0) global() argument
/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/lang/ku/
H A Ddiff.txt
/dokuwiki/inc/lang/en/
H A Dmailtext.txt13 happens, a message will be shown on the top of the rev page.
/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/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);
/dokuwiki/
H A Dfeed.php
/dokuwiki/inc/lang/vi/
H A Dmailtext.txt12 Có thể có những thay đổi mới hơn sau khi phiên bản này. Nếu điều này xảy ra, một tin nhắn sẽ được hiển thị trên đầu trang rev.
/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

12