[ Index ]

PHP Cross Reference of DokuWiki




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

DokuWiki Revisions Interface parent class of PageRevisions and MediaRevisions

File Size: 120 lines (4 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
param: int  $first
param: bool $hasNext
return: array  revisions to be shown in a paginated list

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

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