Display comments
Methods | ||||
---|---|---|---|---|
public
|
__construct(XoopsTpl $tpl, boolean $use_icons = true, boolean $do_iconcheck = false)
Constructor
Constructor |
# | ||
public
static
|
instance(XoopsTpl $tpl, boolean $use_icons = true, boolean $do_iconcheck = false): XoopsCommentRenderer
Access the only instance of this class
Access the only instance of this class Parameters
|
# | ||
public
|
setComments(array &$comments_arr)
Accessor
Accessor Parameters
|
# | ||
public
|
renderFlatView(boolean $admin_view = false)
Render the comments in flat view
Render the comments in flat view |
# | ||
public
|
renderThreadView(integer $comment_id = 0, boolean $admin_view = false, boolean $show_nav = true): void
Render the comments in thread view
Render the comments in thread view This method calls itself recursively Parameters
|
# | ||
public
|
_renderThreadReplies(
array &$thread,
int $key,
array &$replies,
string $prefix,
bool $admin_view,
integer $depth = 0,
string $current_prefix = '',
)
Render replies to a thread
Render replies to a thread |
# | ||
public
|
renderNestView(integer $comment_id = 0, boolean $admin_view = false): void
Render comments in nested view
Render comments in nested view Danger: Recursive! Parameters
|
# | ||
public
|
_renderNestReplies(array &$thread, int $key, array &$replies, string|int $prefix, bool $admin_view, integer $depth = 0)
Render replies in nested view
Render replies in nested view |
# | ||
public
|
_getPosterName(int $poster_id, $poster_user, $poster_website): string
Get the name of the poster
Get the name of the poster |
# | ||
public
|
_getPosterArray(int $poster_id, $poster_user, $poster_website): array
Get an array with info about the poster
Get an array with info about the poster |
# | ||
public
|
_getTitleIcon(string $icon_image): string
Get the IMG tag for the title icon
Get the IMG tag for the title icon ReturnsHTML IMG tag |
# |
Properties | |||
---|---|---|---|
public
|
|
$_tpl
*#@+
*#@+ |
# |
public
|
|
$_comments
|
# |
public
|
|
$_useIcons = true
|
# |
public
|
|
$_doIconCheck = false
|
# |
public
|
false|XoopsMemberHandler
|
$_memberHandler
|
# |
public
|
|
$_statusText
|
# |