[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

(no description)

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

Defines 1 class

PageDiff:: (12 methods):
  __construct()
  setChangeLog()
  compareWith()
  handle()
  preProcess()
  show()
  showDiffViewSelector()
  buildRevisionsNavigation()
  buildRevisionOptions()
  buildDropdownSelector()
  diffViewlink()
  insertSoftbreaks()


Class: PageDiff  - X-Ref

DokuWiki PageDiff Interface

__construct($id = null)   X-Ref
PageDiff Ui constructor

param: string $id  page id

setChangeLog()   X-Ref
No description

compareWith($text = null)   X-Ref
Set text to be compared with most current version
when it has been externally edited
exclusively use of the compare($old, $new) method

param: string $text
return: $this

handle()   X-Ref
Handle requested revision(s) and diff view preferences

return: void

preProcess()   X-Ref
Prepare revision info of comparison pair


show()   X-Ref
Show diff
between current page version and provided $text
or between the revisions provided via GET or POST

author: Andreas Gohr <andi@splitbrain.org>
return: void

showDiffViewSelector()   X-Ref
Print form to choose diff view type, and exact url reference to the view


buildRevisionsNavigation()   X-Ref
Create html for revision navigation

The navigation consists of older and newer revisions selectors, each
state mutually depends on the selected revision of opposite side.

return: string[] html of navigation for both older and newer sides

buildRevisionOptions($side, $revs)   X-Ref
prepare options for dropdwon selector

return: array

buildDropdownSelector($side, $options)   X-Ref
build Dropdown form for revisions navigation

return: string

diffViewlink($linktype, $rev1, $rev2 = null)   X-Ref
Create html link to a diff view defined by two revisions

param: string $linktype
param: int $rev1 older revision
param: int $rev2 newer revision or null for diff with current revision
return: string html of link to a diff view

insertSoftbreaks($diffhtml)   X-Ref
Insert soft breaks in diff html

param: string $diffhtml
return: string