[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

DokuWiki Diff Interface parent class of PageDiff and MediaDiff

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

Defines 4 functions

  __construct()
  compare()
  preference()
  handle()

Functions
Functions that are not part of a class:

__construct($id)   X-Ref
Diff Ui constructor

param: string $id  page id or media id

compare($rev1, $rev2)   X-Ref
Set a pair of revisions to be compared

param: int $rev1 older revision
param: int $rev2 newer revision
return: $this

preference($prefs = null, $value = null)   X-Ref
Gets or Sets preference of the Ui\Diff object

param: string|array $prefs  a key name or key-value pair(s)
param: mixed $value         value used when the first args is string
return: array|$this

handle()   X-Ref
Handle requested revision(s)

return: void