Home
last modified time | relevance | path

Searched +full:revisions -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang) (Results 1 – 25 of 47) sorted by relevance

12

/dokuwiki/inc/Ui/
H A DRevisions.php8 * DokuWiki Revisions Interface
11 …gation starts from -1, not 0. This is because our Revision management starts old revisions at 0 and
12 * will return the current revision only if the revisions starting at -1 are requested.
16 abstract class Revisions extends Ui class
25 * Revisions Ui constructor
41 * Get revisions, and set correct pagination parameters (first, hasNext)
45 * @return array revisions to be shown in a paginated list
53 $revisions = [];
56 if (!$currentRevInfo) return $revisions;
78 // append each revision info array to the revisions
[all …]
H A DPageRevisions.php14 class PageRevisions extends Revisions
38 * Display list of old revisions of the page
53 // get revisions, and set correct pagination parameters (first, hasNext)
56 $revisions = $this->getRevisions($first, $hasNext);
59 echo p_locale_xhtml('revisions');
70 foreach ($revisions as $info) {
111 echo $form->toHTML('Revisions');
114 … echo $this->navigation($first, $hasNext, static fn($n) => ['do' => 'revisions', 'first' => $n]);
H A DMediaRevisions.php15 class MediaRevisions extends Revisions
40 * Display a list of Media Revisions in the MediaManager
55 // get revisions, and set correct pagination parameters (first, hasNext)
58 $revisions = $this->getRevisions($first, $hasNext);
66 $form->setHiddenField('mediado', 'diff'); // required for media revisions
71 foreach ($revisions as $info) {
112 echo $form->toHTML('Revisions');
H A DPageDiff.php169 msg('no way to compare when less than two revisions', -1);
176 * or between the revisions provided via GET or POST
295 // no revisions selector for PageConflict or PageDraft
298 // use timestamp for current revision, date may be false when revisions < 2
333 * The navigation consists of older and newer revisions selectors, each
343 // no revisions selector for PageConflict or PageDraft
347 // use timestamp for current revision, date may be false when revisions < 2
350 // retrieve revisions used in dropdown selectors, even when rev1 or rev2 is false
359 // determine previous/next revisions (older/left side)
366 // determine previous/next revisions (newer/right side)
[all …]
H A DPageView.php42 //disable section editing for old revisions or in preview
63 // print intro for old revisions
H A DMediaDiff.php118 * Shows difference between two revisions of media
161 // use timestamp for current revision, date may be false when revisions < 2
224 * Shows difference between two revisions of media file
H A DDiff.php51 * Set a pair of revisions to be compared
/dokuwiki/inc/Menu/Item/
H A DRevisions.php6 * Class Revisions
8 * Access the old revisions of the current page
10 class Revisions extends AbstractItem class
/dokuwiki/inc/Action/
H A DRevisions.php9 * Class Revisions
11 * Show the list of old revisions of the current page
15 class Revisions extends AbstractAction class
H A DDiff.php11 * Show the differences between two revisions
/dokuwiki/_test/tests/inc/
H A Dchangelog_hasrevisions.test.php6 * Tests for if a page has revisions with hasRevisions()
14 * test page has revisions
25 * test page has no revisions
H A Dchangelog_getRevisionsAround.test.php6 * Tests for requesting revisions of a page with getRevisions()
15 * list of revisions in mailinglist.changes
60 * Surrounding revisions of rev1 and rev2 overlaps
85 * Surrounding revisions of rev1 and rev2 don't overlap.
111 * Should return still a number of revisions equal to max
126 //todo: number of revisions on the left side is not (yet) completed until max number
142 * Number of requested revisions is larger than available revisions,
H A Dcommon_saveWikiText.test.php10 /** Delay writes of old revisions by a second. */
26 $revisions = $pagelog->getRevisions(-1, 200);
27 $this->assertCount($expectedRevs, $revisions);
28 $this->assertCount($expectedRevs, array_unique($revisions), 'date duplicated in changelog');
30 $lastRevInfo = $pagelog->getRevisionInfo($revisions[0]);
43 if ($expected2ndLastEntry && count($revisions) > 1) {
44 $prevRevInfo = $pagelog->getRevisionInfo($revisions[1]);
59 $revisions = $pagelog->getRevisions(-1, 200);
60 $this->assertCount($expectedRevs, $revisions);
61 $this->assertCount($expectedRevs, array_unique($revisions), 'date duplicated in changelog');
[all …]
H A Dtemplate_include_page.test.php65 $ACT = 'revisions';
66 $this->assertEquals('foo:bar - Old revisions', tpl_pagetitle(null, true));
H A Dchangelog_getrevisions.test.php6 * Tests for requesting revisions of a page with getRevisions()
19 1371579614, 1368622240, // revisions, corresponds to respectively $first = 0 and 1
206 * get oldest revisions
H A Dchangelog_getrevisioninfo.test.php123 * request non existing revision somewhere between existing revisions
/dokuwiki/lib/tpl/dokuwiki/css/
H A D_recent.css3 * old revisions (?do=revisions).
6 /*____________ list of revisions / recent changes ____________*/
8 /* select type of revisions (media/pages) */
/dokuwiki/inc/Menu/
H A DPageMenu.php14 protected $types = ['Edit', 'Revert', 'Revisions', 'Backlink', 'Subscribe', 'Top'];
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php84 * otherwise it must be assigned larger than any other revisions to keep them sortable.
183 * Return a list of page revisions numbers
199 * @param int $num number of revisions to return
341 …// look for revisions later/earlier than $rev, when founded count till the wanted revision is reac…
389 * Returns revisions around rev1 and rev2
394 * @param int $max maximum number of revisions returned
395 * @return array with two arrays with revisions surrounding rev1 respectively rev2
413 //collect revisions around rev2
420 //collect revisions around rev1
423 //no overlapping revisions
[all …]
H A DRevisionInfo.php122 * used in [Ui\recent, Ui\Revisions]
140 * used in [Ui\recent, Ui\Revisions]
151 * used in [Ui\recent, Ui\Revisions]
170 * used in [Ui\recent, Ui\Revisions]
280 // when a page just created anyway, it is natural to expect no older revisions
298 * diff link icon in revisions list, compare this revision with current one
343 if (!actionOK('revisions')) {
354 $href = wl($id, ['do' => 'revisions'], false, '&');
364 * used in [Ui\recent, Ui\Revisions]
/dokuwiki/lib/scripts/
H A Dbehaviour.js184 * disable multiple revisions checkboxes if two are checked
190 var $revisions = jQuery('#page__revisions');
191 var $all = jQuery('input[type="checkbox"][name="rev2[]"]', $revisions);
193 var $button = jQuery('button', $revisions);
/dokuwiki/inc/Remote/
H A DApiCore.php110 * server's time when working with last modified timestamps (revisions).
274 0, // we're searching current revisions only
465 * Returns a list of available revisions of a given wiki page
467 * The number of returned pages is set by `$conf['recent']`, but non accessible revisions
486 // old revisions are counted from 0, so we need to subtract 1 for the current one
487 $revisions = $pagelog->getRevisions($first - 1, $conf['recent']);
490 foreach ($revisions as $rev) {
491 if (!page_exists($page, $rev)) continue; // skip non-existing revisions
772 0, // we're searching current revisions only
919 * Returns a list of available revisions of a given media file
[all …]
/dokuwiki/inc/Subscriptions/
H A DBulkSubscriptionSender.php92 $revisions = $pagelog->getRevisions($n++, 1);
93 … $rev = ($revisions !== []) ? $pagelog->getRevisionInfo($revisions[0]) : null;
/dokuwiki/lib/plugins/revert/
H A Dadmin.php15 protected $max_revs = 20; // numer of old revisions to check
160 echo '<a href="' . wl($recent['id'], "do=revisions") . '">';
/dokuwiki/conf/
H A Ddokuwiki.php97 $conf['mediarevisions'] = 1; //enable/disable media revisions
128 // 'rev' - page showing all revisions
152 $conf['compression'] = 'gz'; //compress old revisions: (0: off) ('gz': gnuzip) ('bz2': …

12