Apparently not.
[specialops2.git] / lib / iface.messagedisplay.php
blobe9dab9aa21708564f8fdb2aa2c525d72292c3412
1 <?php
2 /**
3 * Messagelist class interface
5 * @author Anthony Parsons (xmpp:ant@specialops.ath.cx)
6 * @license file://../COPYING
7 * @version $Id$
8 */
9 interface messagedisplay
11 /**
12 * Take a mysqli result set and echo a message list from it.
13 * @param mysqli_result $rows The result set to use
14 * @return null
16 public function display(mysqli_result $rows);
18 /**
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
26 * @return string|null
28 public function pagelist($posts, $page, $topicid, $totalposts);
30 /**
31 * HTML for message detail action links
33 const MD_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>
37 </form>';
39 /**
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>';