Pepperminty Wiki Module API

feature-recent-changes.php

Table of Contents

add_recent_change()  : mixed
Adds a new recent change to the recent changes file.
render_recent_changes()  : string
Renders a list of recent changes to HTML.
find_revisionid_timestamp()  : int
Given a page name and timestamp, returns the associated page revision number.
render_recent_change()  : string
Renders a single recent change
render_recent_change_atom()  : string
Renders a list of recent changes as an Atom 1.0 feed.

Functions

add_recent_change()

Adds a new recent change to the recent changes file.

add_recent_change(array<string|int, mixed> $rchange) : mixed
Parameters
$rchange : array<string|int, mixed>

The new change to add.

Return values
mixed

render_recent_changes()

Renders a list of recent changes to HTML.

render_recent_changes(array<string|int, mixed> $recent_changes) : string
Parameters
$recent_changes : array<string|int, mixed>

The recent changes to render.

Return values
string

The given recent changes as HTML.

find_revisionid_timestamp()

Given a page name and timestamp, returns the associated page revision number.

find_revisionid_timestamp(string $pagename, mixed $timestamp) : int
Parameters
$pagename : string

The page name to obtain the revision number for.

$timestamp : mixed
Return values
int

The revision number of the given page at the given time.

render_recent_change()

Renders a single recent change

render_recent_change(object $rchange) : string
Parameters
$rchange : object

The recent change to render.

Return values
string

The recent change, rendered to HTML.

render_recent_change_atom()

Renders a list of recent changes as an Atom 1.0 feed.

render_recent_change_atom(array<string|int, mixed> $recent_changes) : string

Requires the XMLWriter PHP class.

Parameters
$recent_changes : array<string|int, mixed>

The array of recent changes to render.

Return values
string

The recent changes as an Atom 1.0 feed.

Search results