[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

(no description)

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

Defines 1 class

Recent:: (6 methods):
  __construct()
  show()
  getRecents()
  checkCurrentRevision()
  htmlNavigation()
  addRecentItemSelector()


Class: Recent  - X-Ref

DokuWiki Recent Interface

__construct($first = 0, $show_changes = 'both')   X-Ref
Recent Ui constructor

param: int $first  skip the first n changelog lines
param: string $show_changes  type of changes to show; 'pages', 'mediafiles', or 'both'

show()   X-Ref
Display recent changes

author: Andreas Gohr <andi@splitbrain.org>
author: Matthias Grimm <matthiasgrimm@users.sourceforge.net>
author: Ben Coburn <btcoburn@silicodon.net>
author: Kate Arzamastseva <pshns@ukr.net>
author: Satoshi Sahara <sahara.satoshi@gmail.com>
return: void

getRecents(&$first, &$hasNext)   X-Ref
Get recent items, and set correct pagination parameters (first, hasNext)

param: int  $first
param: bool $hasNext
see: also dokuwiki\Changelog::getRevisionInfo()
return: array  recent items to be shown in a paginated list

checkCurrentRevision(array &$info)   X-Ref
Check possible external deletion for current page or media

To keep sort order in the recent list, we ignore externally modification.
It is not possible to know when external deletion had happened,
$info['date'] is to be incremented 1 second when such deletion detected.

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

param: int  $first
param: bool $hasNext
return: string html

addRecentItemSelector(Form $form)   X-Ref
Add dropdown selector of item types to the form instance

param: Form $form
return: void