3 * Messagelist class interface
5 * @author Anthony Parsons (xmpp:ant@specialops.ath.cx)
6 * @license file://../COPYING
9 interface messagedisplay
12 * Take a mysqli result set and echo a message list from it.
13 * @param mysqli_result $rows The result set to use
16 public function display(mysqli_result
$rows);
19 * Return (not echo) list of page links in a XHTML dd format (with no dl tags)
21 * If the class can't handle pages for whatever reason, then return null instead.
22 * @param int $posts Number of posts per page
23 * @param int $page Zero-indexed page number
24 * @param int $topicid Topic ID to use in URLs
25 * @param int $totalposts Number of posts in all
28 public function pagelist($posts, $page, $topicid, $totalposts);
31 * HTML for message detail action links
34 '<form action="detail?%d" method="post" class="msg-rate-form">
35 <button type="submit" name="action" value="add"><img src="res/plus" alt="Suggest"/></button>
36 <button type="submit" name="action" value="sub"><img src="res/minus" alt="Mark"/></button>
40 * HTML for message detail w/no-action link
42 const MD_VIEW
= ' <a href="detail?%1$d"><img src="res/ternary" alt="Message Detail"/></a>';