|
| __construct (XoopsTpl $tpl, $use_icons=true, $do_iconcheck=false) |
|
| setComments (&$comments_arr) |
|
| renderFlatView ($admin_view=false) |
|
| renderThreadView ($comment_id=0, $admin_view=false, $show_nav=true) |
|
| _renderThreadReplies (&$thread, $key, &$replies, $prefix, $admin_view, $depth=0, $current_prefix='') |
|
| renderNestView ($comment_id=0, $admin_view=false) |
|
| _renderNestReplies (&$thread, $key, &$replies, $prefix, $admin_view, $depth=0) |
|
| _getPosterName ($poster_id, $poster_user, $poster_website) |
|
| _getPosterArray ($poster_id, $poster_user, $poster_website) |
|
| _getTitleIcon ($icon_image) |
|
Display comments
- Author
- Kazumi Ono onoka.nosp@m.zu@x.nosp@m.oops..nosp@m.org @access public
◆ __construct()
__construct |
( |
XoopsTpl |
$tpl, |
|
|
|
$use_icons = true , |
|
|
|
$do_iconcheck = false |
|
) |
| |
*#- Constructor
- Parameters
-
XoopsTpl | $tpl | |
boolean | $use_icons | |
boolean | $do_iconcheck | |
◆ _getPosterArray()
_getPosterArray |
( |
|
$poster_id, |
|
|
|
$poster_user, |
|
|
|
$poster_website |
|
) |
| |
Get an array with info about the poster
- Parameters
-
int | $poster_id | |
| $poster_user | |
| $poster_website | |
- Returns
- array @access private
◆ _getPosterName()
_getPosterName |
( |
|
$poster_id, |
|
|
|
$poster_user, |
|
|
|
$poster_website |
|
) |
| |
Get the name of the poster
- Parameters
-
int | $poster_id | |
| $poster_user | |
| $poster_website | |
- Returns
- string @access private
◆ _getTitleIcon()
_getTitleIcon |
( |
|
$icon_image | ) |
|
Get the IMG tag for the title icon
- Parameters
-
- Returns
- string HTML IMG tag @access private
◆ _renderNestReplies()
_renderNestReplies |
( |
& |
$thread, |
|
|
|
$key, |
|
|
& |
$replies, |
|
|
|
$prefix, |
|
|
|
$admin_view, |
|
|
|
$depth = 0 |
|
) |
| |
Render replies in nested view
- Parameters
-
array | $thread | |
int | $key | |
array | $replies | |
string | int | $prefix | |
bool | $admin_view | |
integer | $depth | @access private |
◆ _renderThreadReplies()
_renderThreadReplies |
( |
& |
$thread, |
|
|
|
$key, |
|
|
& |
$replies, |
|
|
|
$prefix, |
|
|
|
$admin_view, |
|
|
|
$depth = 0 , |
|
|
|
$current_prefix = '' |
|
) |
| |
Render replies to a thread
- Parameters
-
array | $thread | |
int | $key | |
array | $replies | |
string | $prefix | |
bool | $admin_view | |
integer | $depth | |
string | $current_prefix | @access private |
◆ instance()
static instance |
( |
XoopsTpl |
$tpl, |
|
|
|
$use_icons = true , |
|
|
|
$do_iconcheck = false |
|
) |
| |
|
static |
Access the only instance of this class
- Parameters
-
XoopsTpl | $tpl | reference to a Smarty object |
boolean | $use_icons | |
boolean | $do_iconcheck | |
- Returns
- \XoopsCommentRenderer
◆ renderFlatView()
renderFlatView |
( |
|
$admin_view = false | ) |
|
Render the comments in flat view
- Parameters
-
◆ renderNestView()
renderNestView |
( |
|
$comment_id = 0 , |
|
|
|
$admin_view = false |
|
) |
| |
Render comments in nested view
Danger: Recursive!
- Parameters
-
integer | $comment_id | Always "0" when called by client. |
boolean | $admin_view | |
- Returns
- void
◆ renderThreadView()
renderThreadView |
( |
|
$comment_id = 0 , |
|
|
|
$admin_view = false , |
|
|
|
$show_nav = true |
|
) |
| |
Render the comments in thread view
This method calls itself recursively
- Parameters
-
integer | $comment_id | Should be "0" when called by client |
boolean | $admin_view | |
boolean | $show_nav | |
- Returns
- void
◆ setComments()
setComments |
( |
& |
$comments_arr | ) |
|
◆ $_comments
◆ $_doIconCheck
◆ $_memberHandler
◆ $_statusText
◆ $_tpl
◆ $_useIcons
The documentation for this class was generated from the following file: