|
XOOPS 2.5.6
Final
|
Public Member Functions | |
| _getPosterArray ($poster_id, $poster_user, $poster_website) | |
| _getPosterName ($poster_id, $poster_user, $poster_website) | |
| _getTitleIcon ($icon_image) | |
| _renderNestReplies (&$thread, $key, &$replies, $prefix, $admin_view, $depth=0) | |
| _renderThreadReplies (&$thread, $key, &$replies, $prefix, $admin_view, $depth=0, $current_prefix= '') | |
| & | instance (&$tpl, $use_icons=true, $do_iconcheck=false) |
| renderFlatView ($admin_view=false) | |
| renderNestView ($comment_id=0, $admin_view=false) | |
| renderThreadView ($comment_id=0, $admin_view=false, $show_nav=true) | |
| setComments (&$comments_arr) | |
| XoopsCommentRenderer (&$tpl, $use_icons=true, $do_iconcheck=false) | |
Public Attributes | |
| $_comments = null | |
| $_doIconCheck = false | |
| $_memberHandler | |
| $_statusText | |
| $_tpl | |
| $_useIcons = true | |
Display comments
Definition at line 29 of file commentrenderer.php.
| XoopsCommentRenderer::_getPosterArray | ( | $poster_id, | |
| $poster_user, | |||
| $poster_website | |||
| ) |
Get an array with info about the poster
| int | $poster_id |
Definition at line 367 of file commentrenderer.php.
References $GLOBALS, $poster, _CM_ONLINE, and formatTimestamp().

| XoopsCommentRenderer::_getPosterName | ( | $poster_id, | |
| $poster_user, | |||
| $poster_website | |||
| ) |
Get the name of the poster
| int | $poster_id |
Definition at line 334 of file commentrenderer.php.
| XoopsCommentRenderer::_getTitleIcon | ( | $icon_image | ) |
Get the IMG tag for the title icon
| string | $icon_image |
Definition at line 418 of file commentrenderer.php.
References $GLOBALS.
| XoopsCommentRenderer::_renderNestReplies | ( | & | $thread, |
| $key, | |||
| & | $replies, | ||
| $prefix, | |||
| $admin_view, | |||
$depth = 0 |
|||
| ) |
Render replies in nested view
| array | $thread | |
| int | $key | |
| array | $replies | |
| string | $prefix | |
| bool | $admin_view | |
| integer | $depth | private |
Definition at line 295 of file commentrenderer.php.
References $i, $title, _CM_EMAIL, _CM_STATUS, formatTimestamp(), and XOOPS_COMMENT_ACTIVE.

| XoopsCommentRenderer::_renderThreadReplies | ( | & | $thread, |
| $key, | |||
| & | $replies, | ||
| $prefix, | |||
| $admin_view, | |||
$depth = 0, |
|||
$current_prefix = '' |
|||
| ) |
Render replies to a thread
| array | $ &$thread | |
| int | $key | |
| array | $replies | |
| string | $prefix | |
| bool | $admin_view | |
| integer | $depth | |
| string | $current_prefix | private |
Definition at line 204 of file commentrenderer.php.
References $title, formatTimestamp(), and XOOPS_COMMENT_ACTIVE.

Access the only instance of this class
| object | $tpl | reference to a Smarty object |
| boolean | $use_icons | |
| boolean | $do_iconcheck |
Definition at line 70 of file commentrenderer.php.
References $tpl.
| XoopsCommentRenderer::renderFlatView | ( | $admin_view = false | ) |
Render the comments in flat view
| boolean | $admin_view |
Definition at line 97 of file commentrenderer.php.
References $com_email, $i, $poster, $title, _CM_EMAIL, _CM_STATUS, formatTimestamp(), and XOOPS_COMMENT_ACTIVE.

| XoopsCommentRenderer::renderNestView | ( | $comment_id = 0, |
|
$admin_view = false |
|||
| ) |
Render comments in nested view
Danger: Recursive!
| integer | $comment_id | Always "0" when called by client. |
| boolean | $admin_view |
Definition at line 243 of file commentrenderer.php.
References $com_email, $GLOBALS, $title, _CM_EMAIL, _CM_STATUS, formatTimestamp(), and XOOPS_COMMENT_ACTIVE.

Render the comments in thread view
This method calls itself recursively
| integer | $comment_id | Should be "0" when called by client |
| boolean | $admin_view | |
| boolean | $show_nav |
Definition at line 140 of file commentrenderer.php.
References $com_email, $GLOBALS, $title, _CM_EMAIL, _CM_PARENT, _CM_STATUS, _CM_TOP, formatTimestamp(), and XOOPS_COMMENT_ACTIVE.

| XoopsCommentRenderer::setComments | ( | & | $comments_arr | ) |
Accessor
| object | $ &$comments_arr array of XoopsComment objects |
Definition at line 84 of file commentrenderer.php.
*#@- Constructor
| object | $ &$tpl | |
| boolean | $use_icons | |
| boolean | $do_iconcheck |
Definition at line 53 of file commentrenderer.php.
References $tpl, _CM_ACTIVE, _CM_HIDDEN, _CM_PENDING, XOOPS_COMMENT_ACTIVE, XOOPS_COMMENT_HIDDEN, XOOPS_COMMENT_PENDING, and xoops_gethandler().

| XoopsCommentRenderer::$_comments = null |
Definition at line 37 of file commentrenderer.php.
| XoopsCommentRenderer::$_doIconCheck = false |
Definition at line 39 of file commentrenderer.php.
| XoopsCommentRenderer::$_memberHandler |
Definition at line 40 of file commentrenderer.php.
| XoopsCommentRenderer::$_statusText |
Definition at line 41 of file commentrenderer.php.
| XoopsCommentRenderer::$_tpl |
| XoopsCommentRenderer::$_useIcons = true |
Definition at line 38 of file commentrenderer.php.