[ Index ]

PHP Cross Reference of DokuWiki




/inc/Ui/ -> Revisions.php (summary)

DokuWiki Revisions Interface parent class of PageRevisions and MediaRevisions Note: navigation starts from -1, not 0. This is because our Revision management starts old revisions at 0 and will return the current revision only if the revisions starting at -1 are requested.

File Size: 113 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions


Functions that are not part of a class:

__construct($id)   X-Ref
Revisions Ui constructor

param: string $id page id or media id

getRevisions(&$first, &$hasNext)   X-Ref
Get revisions, and set correct pagination parameters (first, hasNext)

see: also https://www.dokuwiki.org/devel:changelog
return: array  revisions to be shown in a paginated list
param: int $first
param: bool $hasNext

navigation($first, $hasNext, $callback)   X-Ref
Navigation buttons for Pagination (prev/next)

return: string html
param: int $first
param: bool $hasNext
param: callable $callback returns array of hidden fields for the form button