Home
last modified time | relevance | path

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

12

/dokuwiki/inc/File/
H A DPageResolver.php17 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)) {
78 * @param int $rev
82 protected function resolveAutoPlural($id, $rev, $isDateAt) argument
84 if (page_exists($id, $rev, $isDateAt)) return $id;
[all …]
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);
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
H A DMediaFile.php23 * @param string|int $rev optional revision
25 public function __construct($id, $rev = '') argument
28 $this->path = mediaFN($id, $rev);
H A DResolver.php29 * @param string|int|false $rev The revision time to use when resolving
33 public function resolveId($id, $rev = '', $isDateAt = false) argument
/dokuwiki/inc/Subscriptions/
H A DBulkSubscriptionSender.php86 foreach ($changes as $rev) {
88 while (!is_null($rev) && $rev['date'] >= $lastupdate &&
92 $pagelog = new PageChangeLog($rev['id']);
93 $rev = $pagelog->getRevisions($n++, 1);
94 $rev = (count($rev) > 0) ? $rev[0] : null;
97 if (!is_null($rev) && $rev['date'] >= $lastupdate) {
99 $change_ids[] = $rev['id'];
201 $rev = $pagelog->getRevisions($n++, 1);
202 $rev = (count($rev) > 0) ? $rev[0] : null;
203 } while (!is_null($rev) && $rev > $lastupdate);
[all …]
H A DMediaSubscriptionSender.php18 * @param int|bool $rev Old revision if any
21 …public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false) argument
34 if ($rev && $conf['mediarevisions']) {
35 $trep['OLD'] = ml($id, "rev=$rev", true, '&', true);
41 if ($rev) {
42 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
H A DPageSubscriptionSender.php20 * @param int|null $rev Old revision if any
26 …public function sendPageDiff($subscriber_mail, $template, $id, $rev = null, $summary = '', $curren… argument
39 if ($rev) {
41 $trep['OLDPAGE'] = wl($id, "rev=$rev", true, '&');
43 $old_content = rawWiki($id, $rev);
73 if ($rev) {
74 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
H A 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/
H A DChangeLog.php53 public function isCurrentRevision($rev) argument
61 * @param int $rev revision timestamp
121 * @param int $rev revision timestamp
139 $rev = max(0, $rev);
140 if (!$rev) return false;
315 $rev = max($rev, 0);
391 $rev = $rev2;
393 $rev1 = $rev;
452 return $rev;
669 * @param int $rev
[all …]
H A DRevisionInfo.php172 $rev = $this->isCurrent() ? '' : $this->val('date');
177 if ($rev) $params += ['rev'=> $rev];
180 $exists = file_exists(mediaFN($id, $rev));
183 $params = $rev ? ['rev'=> $rev] : [];
187 $exists = page_exists($id, $rev);
219 $rev = $this->isCurrent() ? '' : $this->val('date');
220 $params = ($rev) ? ['rev'=> $rev] : [];
231 $exists = file_exists(mediaFN($id, $rev));
235 $exists = page_exists($id, $rev);
306 $rev = $this->isCurrent() ? '' : $this->val('date');
[all …]
H A DPageChangeLog.php24 * @param string|int $rev empty string or revision timestamp
27 protected function getFilename($rev = '') argument
29 return wikiFN($this->id, $rev);
H A DMediaChangeLog.php24 * @param string|int $rev empty string or revision timestamp
27 protected function getFilename($rev = '') argument
29 return mediaFN($this->id, $rev);
/dokuwiki/inc/Ui/
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 DMediaRevisions.php72 $rev = $info['date'];
75 $RevInfo->isCurrent($changelog->isCurrentRevision($rev));
82 $form->addCheckbox('rev2[]')->val($rev);
83 } elseif (file_exists(mediaFN($this->id, $rev))) {
84 $form->addCheckbox('rev2[]')->val($rev);
86 $form->addCheckbox('')->val($rev)->attr('disabled','disabled');
H A DRevisions.php85 foreach ($revlist as $rev) {
86 $revisions[] = $changelog->getRevisionInfo($rev);
H A DPageDiff.php151 $rev = $isCurrent ? '' : $RevInfo->val('date');
152 $text = rawWiki($this->id, $rev);
425 foreach ($revs as $rev) {
426 $info = $changelog->getRevisionInfo($rev);
434 $options[$rev] = array(
440 'attrs' => ['title' => $rev],
442 if (($side == 'older' && ($rev2 && $rev >= $rev2))
443 ||($side == 'newer' && ($rev <= $rev1))
445 $options[$rev]['attrs']['disabled'] = 'disabled';
/dokuwiki/inc/
H A Dpageutils.php285 if ($rev !== '' && $date_at) {
289 $rev = $pagelog_rev;
305 if ($rev !== '' && $date_at) {
309 $rev = $changelog_rev;
341 return $cache[$id][$rev];
344 if (empty($rev)) {
364 $cache[$id][$rev] = $fn;
450 function mediaFN($id, $rev = '', $clean = true) argument
455 if (empty($rev)) {
552 * @param int|string $rev
[all …]
H A Dfetch.functions.php139 * @param string $rev
144 function checkFileStatus(&$media, &$file, $rev = '', $width=0, $height=0) { argument
173 $file = mediaFN($media, $rev);
H A Dio.php67 * @param bool|int $rev revision timestamp
70 function io_readWikiPage($file, $id, $rev=false) { argument
71 if (empty($rev)) { $rev = false; }
72 $data = array(array($file, true), getNS($id), noNS($id), $rev);
186 * @param int|bool $rev timestamp of revision
189 function io_writeWikiPage($file, $content, $id, $rev=false) { argument
190 if (empty($rev)) { $rev = false; }
191 if ($rev===false) { io_createNamespace($id); } // create namespaces as needed
192 $data = array(array($file, $content, false), getNS($id), noNS($id), $rev);
H A Dmedia.php960 media_preview($image, $auth, $rev, $meta);
961 media_preview_buttons($image, $auth, $rev);
962 media_details($image, $auth, $rev, $meta);
1034 if ($rev) {
1035 $more['rev'] = $rev;
1083 if ($auth >= $auth_ow && !$rev) {
1098 …if ($auth >= AUTH_UPLOAD && $rev && $conf['mediarevisions'] && file_exists(mediaFN($image, $rev)))…
1107 $form->setHiddenField('rev', $rev);
1123 * @param int|string $rev
1306 function media_restore($image, $rev, $auth){ argument
[all …]
/dokuwiki/inc/lang/sk/
H A Donceexisted.txt3 …am [[?do=revisions|predošlých revízií]] a zistíte, kedy a prečo bola stránka zmazaná. Tiež získate…
/dokuwiki/inc/lang/ku/
H A Ddiff.txt3 Li vê derê cuyawaziyên nav revîziyona hilbijartî û verziyona aniha tên nîşan dan.
/dokuwiki/inc/Remote/
H A DApiCore.php217 public function rawPage($id, $rev = '') argument
223 $text = rawWiki($id, $rev);
299 public function htmlPage($id, $rev = '') argument
474 public function pageInfo($id, $rev = '') argument
480 $file = wikiFN($id, $rev);
488 if ($rev === '') {
489 $rev = $time;
499 'version' => $rev
935 foreach ($revisions as $rev) {
936 $file = wikiFN($id, $rev);
[all …]
/dokuwiki/
H A Dfeed.php329 $rev = $revs[0];
337 … if ($rev && $size = media_image_preview_size($id, $rev, new JpegMeta(mediaFN($id, $rev)),
339 $more = 'rev=' . $rev . '&w=' . $size[0] . '&h=' . $size[1];
345 $content .= '<tr><th width="50%">' . $rev . '</th>';
355 $rev = $revs[0];
357 if ($rev) {
359 explode("\n", rawWiki($id, $rev)),
373 $content .= '<tr><th colspan="2" width="50%">' . $rev . '</th>';

12