Skip to content

icms_data_comment_Renderer

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_data_comment_Renderer

Display comments

  • Class name: icms_data_comment_Renderer
  • Namespace:

Properties

$_tpl

private mixed $_tpl
  • Visibility: private

$_comments

private mixed $_comments = \null
  • Visibility: private

$_useIcons

private mixed $_useIcons = \true
  • Visibility: private

$_doIconCheck

private mixed $_doIconCheck = \false
  • Visibility: private

$_memberHandler

private mixed $_memberHandler
  • Visibility: private

$_statusText

private mixed $_statusText
  • Visibility: private

Methods

__construct

mixed icms_data_comment_Renderer::__construct(mixed tpl, bool use_icons, bool do_iconcheck)

Constructor

  • Visibility: private

Arguments

  • tpl mixed
  • use_icons bool
  • do_iconcheck bool

instance

\icms_data_comment_Renderer icms_data_comment_Renderer::instance(\Smarty tpl, bool use_icons, bool do_iconcheck)

Access the only instance of this class

  • Visibility: public
  • This method is static.

Arguments

  • tpl Smarty - <p>reference to a Smarty object</p>
  • use_icons bool
  • do_iconcheck bool

setComments

mixed icms_data_comment_Renderer::setComments(mixed comments_arr)

Accessor

  • Visibility: public

Arguments

  • comments_arr mixed

renderFlatView

mixed icms_data_comment_Renderer::renderFlatView(bool admin_view)

Render the comments in flat view

  • Visibility: public

Arguments

  • admin_view bool

renderThreadView

mixed icms_data_comment_Renderer::renderThreadView(int comment_id, bool admin_view, bool show_nav)

Render the comments in thread view

This method calls itself recursively

  • Visibility: public

Arguments

  • comment_id int - <p>Should be "0" when called by client</p>
  • admin_view bool
  • show_nav bool

_renderThreadReplies

mixed icms_data_comment_Renderer::_renderThreadReplies(mixed thread, int key, array replies, string prefix, bool admin_view, int depth, string current_prefix)

Render replies to a thread

  • Visibility: private

Arguments

  • thread mixed
  • key int
  • replies array
  • prefix string
  • admin_view bool
  • depth int
  • current_prefix string

renderNestView

mixed icms_data_comment_Renderer::renderNestView(int comment_id, bool admin_view)

Render comments in nested view

Danger: Recursive!

  • Visibility: public

Arguments

  • comment_id int - <p>Always "0" when called by client.</p>
  • admin_view bool

_renderNestReplies

mixed icms_data_comment_Renderer::_renderNestReplies(array thread, int key, array replies, string prefix, bool admin_view, int depth)

Render replies in nested view

  • Visibility: private

Arguments

  • thread array
  • key int
  • replies array
  • prefix string
  • admin_view bool
  • depth int

_getPosterName

string icms_data_comment_Renderer::_getPosterName(int poster_id)

Get the name of the poster

  • Visibility: private

Arguments

  • poster_id int

_getPosterArray

array icms_data_comment_Renderer::_getPosterArray(int poster_id)

Get an array with info about the poster

  • Visibility: private

Arguments

  • poster_id int

_getTitleIcon

string icms_data_comment_Renderer::_getTitleIcon(string icon_image)

Get the IMG tag for the title icon

  • Visibility: private

Arguments

  • icon_image string
Clone this wiki locally