-
Notifications
You must be signed in to change notification settings - Fork 35
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!
Display comments
- Class name: icms_data_comment_Renderer
- Namespace:
private mixed $_tpl
- Visibility: private
private mixed $_comments = \null
- Visibility: private
private mixed $_useIcons = \true
- Visibility: private
private mixed $_doIconCheck = \false
- Visibility: private
private mixed $_memberHandler
- Visibility: private
private mixed $_statusText
- Visibility: private
mixed icms_data_comment_Renderer::__construct(mixed tpl, bool use_icons, bool do_iconcheck)
Constructor
- Visibility: private
- tpl mixed
- use_icons bool
- do_iconcheck bool
\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.
- tpl Smarty - <p>reference to a Smarty object</p>
- use_icons bool
- do_iconcheck bool
mixed icms_data_comment_Renderer::setComments(mixed comments_arr)
Accessor
- Visibility: public
- comments_arr mixed
mixed icms_data_comment_Renderer::renderFlatView(bool admin_view)
Render the comments in flat view
- Visibility: public
- admin_view bool
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
- comment_id int - <p>Should be "0" when called by client</p>
- admin_view bool
- show_nav bool
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
- thread mixed
- key int
- replies array
- prefix string
- admin_view bool
- depth int
- current_prefix string
mixed icms_data_comment_Renderer::renderNestView(int comment_id, bool admin_view)
Render comments in nested view
Danger: Recursive!
- Visibility: public
- comment_id int - <p>Always "0" when called by client.</p>
- admin_view bool
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
- thread array
- key int
- replies array
- prefix string
- admin_view bool
- depth int
string icms_data_comment_Renderer::_getPosterName(int poster_id)
Get the name of the poster
- Visibility: private
- poster_id int
array icms_data_comment_Renderer::_getPosterArray(int poster_id)
Get an array with info about the poster
- Visibility: private
- poster_id int
string icms_data_comment_Renderer::_getTitleIcon(string icon_image)
Get the IMG tag for the title icon
- Visibility: private
- icon_image string