XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsCommentRenderer Class Reference

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
 

Detailed Description

Display comments

Author
Kazumi Ono onoka.nosp@m.zu@x.nosp@m.oops..nosp@m.org public

Definition at line 29 of file commentrenderer.php.

Member Function Documentation

XoopsCommentRenderer::_getPosterArray (   $poster_id,
  $poster_user,
  $poster_website 
)

Get an array with info about the poster

Parameters
int$poster_id
Returns
array private

Definition at line 367 of file commentrenderer.php.

References $GLOBALS, $poster, _CM_ONLINE, and formatTimestamp().

Here is the call graph for this function:

XoopsCommentRenderer::_getPosterName (   $poster_id,
  $poster_user,
  $poster_website 
)

Get the name of the poster

Parameters
int$poster_id
Returns
string private

Definition at line 334 of file commentrenderer.php.

References $GLOBALS, and $poster.

XoopsCommentRenderer::_getTitleIcon (   $icon_image)

Get the IMG tag for the title icon

Parameters
string$icon_image
Returns
string HTML IMG tag private

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

Parameters
array$thread
int$key
array$replies
string$prefix
bool$admin_view
integer$depthprivate

Definition at line 295 of file commentrenderer.php.

References $i, $title, _CM_EMAIL, _CM_STATUS, formatTimestamp(), and XOOPS_COMMENT_ACTIVE.

Here is the call graph for this function:

XoopsCommentRenderer::_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_prefixprivate

Definition at line 204 of file commentrenderer.php.

References $title, formatTimestamp(), and XOOPS_COMMENT_ACTIVE.

Here is the call graph for this function:

& XoopsCommentRenderer::instance ( $tpl,
  $use_icons = true,
  $do_iconcheck = false 
)

Access the only instance of this class

Parameters
object$tplreference to a Smarty object
boolean$use_icons
boolean$do_iconcheck
Returns

Definition at line 70 of file commentrenderer.php.

References $tpl.

XoopsCommentRenderer::renderFlatView (   $admin_view = false)

Render the comments in flat view

Parameters
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.

Here is the call graph for this function:

XoopsCommentRenderer::renderNestView (   $comment_id = 0,
  $admin_view = false 
)

Render comments in nested view

Danger: Recursive!

Parameters
integer$comment_idAlways "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.

Here is the call graph for this function:

XoopsCommentRenderer::renderThreadView (   $comment_id = 0,
  $admin_view = false,
  $show_nav = true 
)

Render the comments in thread view

This method calls itself recursively

Parameters
integer$comment_idShould 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.

Here is the call graph for this function:

XoopsCommentRenderer::setComments ( $comments_arr)

Accessor

Parameters
object$ &$comments_arr array of XoopsComment objects

Definition at line 84 of file commentrenderer.php.

XoopsCommentRenderer::XoopsCommentRenderer ( $tpl,
  $use_icons = true,
  $do_iconcheck = false 
)

*#@- Constructor

Parameters
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().

Here is the call graph for this function:

Member Data Documentation

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

*#@+

private

Definition at line 36 of file commentrenderer.php.

XoopsCommentRenderer::$_useIcons = true

Definition at line 38 of file commentrenderer.php.


The documentation for this class was generated from the following file: