|
| __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
- Auteur
- Kazumi Ono onoka.nosp@m.zu@x.nosp@m.oops..nosp@m.org @access public
◆ __construct()
*#- Constructor
- Paramètres
-
XoopsTpl | $tpl | |
boolean | $use_icons | |
boolean | $do_iconcheck | |
◆ _getPosterArray()
_getPosterArray |
( |
|
$poster_id, |
|
|
|
$poster_user, |
|
|
|
$poster_website |
|
) |
| |
Get an array with info about the poster
- Paramètres
-
int | $poster_id | |
| $poster_user | |
| $poster_website | |
- Renvoie
- array @access private
◆ _getPosterName()
_getPosterName |
( |
|
$poster_id, |
|
|
|
$poster_user, |
|
|
|
$poster_website |
|
) |
| |
Get the name of the poster
- Paramètres
-
int | $poster_id | |
| $poster_user | |
| $poster_website | |
- Renvoie
- string @access private
◆ _getTitleIcon()
_getTitleIcon |
( |
|
$icon_image | ) |
|
Get the IMG tag for the title icon
- Paramètres
-
- Renvoie
- string HTML IMG tag @access private
◆ _renderNestReplies()
_renderNestReplies |
( |
& |
$thread, |
|
|
|
$key, |
|
|
& |
$replies, |
|
|
|
$prefix, |
|
|
|
$admin_view, |
|
|
|
$depth = 0 |
|
) |
| |
Render replies in nested view
- Paramètres
-
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
- Paramètres
-
array | $thread | |
int | $key | |
array | $replies | |
string | $prefix | |
bool | $admin_view | |
integer | $depth | |
string | $current_prefix | @access private |
◆ instance()
Access the only instance of this class
- Paramètres
-
XoopsTpl | $tpl | reference to a Smarty object |
boolean | $use_icons | |
boolean | $do_iconcheck | |
- Renvoie
- \XoopsCommentRenderer
◆ renderFlatView()
renderFlatView |
( |
|
$admin_view = false | ) |
|
Render the comments in flat view
- Paramètres
-
◆ renderNestView()
renderNestView |
( |
|
$comment_id = 0 , |
|
|
|
$admin_view = false |
|
) |
| |
Render comments in nested view
Danger: Recursive!
- Paramètres
-
integer | $comment_id | Always "0" when called by client. |
boolean | $admin_view | |
- Renvoie
- void
◆ renderThreadView()
renderThreadView |
( |
|
$comment_id = 0 , |
|
|
|
$admin_view = false , |
|
|
|
$show_nav = true |
|
) |
| |
Render the comments in thread view
This method calls itself recursively
- Paramètres
-
integer | $comment_id | Should be "0" when called by client |
boolean | $admin_view | |
boolean | $show_nav | |
- Renvoie
- void
◆ setComments()
setComments |
( |
& |
$comments_arr | ) |
|
◆ $_comments
◆ $_doIconCheck
◆ $_memberHandler
◆ $_statusText
◆ $_tpl
◆ $_useIcons
La documentation de cette classe a été générée à partir du fichier suivant :