UNB Components Code Reference

UnbUi::MsgTree method

Prints a message reference tree.

public static function UnbUi::MsgTree ($messageId, $rootMessageId, $autoSelect, $maxLevel, $htmlTemplate, $moreLink);

Parameters

messageId

(int) Message ID to show the tree for. This doesn't need to be the root message if $autoRoot is set.

rootMessageId

(int) Root message of the discussion. Automatically select the discussion root message to start the tree with if unset.

autoSelect

(bool) Automatically select other messages in the tree for display

maxLevel

(int) Number of reply levels to load and display

htmlTemplate

(string) String to be printed as link element (<a>).
* "%q" is replaced by the URL query parameters
* "%i" is replaced by the message ID
* "%s" is replaced by the subject

moreLink

(string) URL to display more replies in a deeper level.
* "%i" is replaced by the selected message ID
* "%r" is replaced by the root message ID

Member of class: UnbUi

Implementation file: ui.class.php, line 1085

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-06.