|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct (&$tpl, $use_icons=true, $do_iconcheck=false) | |
| & | instance (&$tpl, $use_icons=true, $do_iconcheck=false) |
| setComments (&$comments_arr) | |
| renderFlatView ($admin_view=false) | |
| renderThreadView (int $comment_id=0, bool $admin_view, bool $show_nav=true) | |
| _renderThreadReplies (array &$thread, int $key, array &$replies, string $prefix, bool $admin_view, int $depth=0, string $current_prefix='') | |
| renderNestView (int $comment_id=0, bool $admin_view) | |
| _renderNestReplies (array &$thread, int $key, array &$replies, string $prefix, bool $admin_view, int $depth=0) | |
| _getPosterName ($poster_id) | |
| _getPosterArray ($poster_id) | |
| _getTitleIcon ($icon_image) | |
Data Fields | |
| $_tpl | |
| $_comments = null | |
| $_useIcons = true | |
| $_doIconCheck = false | |
| $_memberHandler | |
| $_statusText | |
Definition at line 15 of file commentrenderer.php.
| __construct | ( | & | $tpl, |
| $use_icons = true, | |||
| $do_iconcheck = false ) |
#- Constructor
| object | &$tpl | |
| bool | $use_icons | |
| bool | $do_iconcheck |
Definition at line 36 of file commentrenderer.php.
| _getPosterArray | ( | $poster_id | ) |
Get an array with info about the poster
| int | $poster_id |
@access private
Definition at line 369 of file commentrenderer.php.
| _getPosterName | ( | $poster_id | ) |
Get the name of the poster
| int | $poster_id |
@access private
Definition at line 346 of file commentrenderer.php.
| _getTitleIcon | ( | $icon_image | ) |
Get the IMG tag for the title icon
| string | $icon_image |
@access private
Definition at line 406 of file commentrenderer.php.
| _renderNestReplies | ( | array & | $thread, |
| int | $key, | ||
| array & | $replies, | ||
| string | $prefix, | ||
| bool | $admin_view, | ||
| int | $depth = 0 ) |
Render replies in nested view
| array | $thread | |
| int | $key | |
| array | $replies | |
| string | $prefix | |
| bool | $admin_view | default =" false |
| int | $depth |
@access private
Definition at line 290 of file commentrenderer.php.
| _renderThreadReplies | ( | array & | $thread, |
| int | $key, | ||
| array & | $replies, | ||
| string | $prefix, | ||
| bool | $admin_view, | ||
| int | $depth = 0, | ||
| string | $current_prefix = '' ) |
Render replies to a thread
| array | &$thread | |
| int | $key | |
| array | $replies | |
| string | $prefix | |
| bool | $admin_view | |
| int | $depth | |
| string | $current_prefix |
@access private
Definition at line 190 of file commentrenderer.php.
| & instance | ( | & | $tpl, |
| $use_icons = true, | |||
| $do_iconcheck = false ) |
Access the only instance of this class
| object | $tpl | reference to a Smarty object |
| bool | $use_icons | |
| bool | $do_iconcheck | default = false |
Definition at line 53 of file commentrenderer.php.
| renderFlatView | ( | $admin_view = false | ) |
Render the comments in flat view
| bool | $admin_view | default=false |
Definition at line 80 of file commentrenderer.php.
| renderNestView | ( | int | $comment_id = 0, |
| bool | $admin_view ) |
Render comments in nested view
Danger: Recursive!
| int | $comment_id | Always "0" when called by client. |
| bool | $admin_view | default = false |
Definition at line 235 of file commentrenderer.php.
| renderThreadView | ( | int | $comment_id = 0, |
| bool | $admin_view, | ||
| bool | $show_nav = true ) |
Render the comments in thread view
This method calls itself recursively
| int | $comment_id | Should be "0" when called by client |
| bool | $admin_view | default = false |
| bool | $show_nav |
Definition at line 121 of file commentrenderer.php.
| setComments | ( | & | $comments_arr | ) |
Accessor
| object | &$comments_arr | array of XoopsComment objects |
Definition at line 67 of file commentrenderer.php.
| $_comments = null |
Definition at line 22 of file commentrenderer.php.
| $_doIconCheck = false |
Definition at line 24 of file commentrenderer.php.
| $_memberHandler |
Definition at line 25 of file commentrenderer.php.
| $_statusText |
Definition at line 26 of file commentrenderer.php.
| $_tpl |
#+ @access private
Definition at line 21 of file commentrenderer.php.
| $_useIcons = true |
Definition at line 23 of file commentrenderer.php.