CommentsService
This class allows you to use a comments system
public static
|
|
public static
|
|
public static
string
|
#
get_number_and_lang_comments( string $module_id, integer $id_in_module, string $topic_identifier = CommentsTopic::DEFAULT_TOPIC_IDENTIFIER )
Returns number comments and lang (example : Comments (number_comments) |
public static
string
|
#
get_lang_comments( string $module_id, integer $id_in_module, string $topic_identifier = CommentsTopic::DEFAULT_TOPIC_IDENTIFIER )
Returns lang (example : "Comments" for several comments, "comment" for one comment and "No comment" if no comment |
public static
|
|
public static
|
#
delete_comments_topic_module( string $module_id, integer $id_in_module )
Delete comments topic according to module identifier and id in module |
public static
string
|
#
get_number_comments( string $module_id, integer $id_in_module, string $topic_identifier = CommentsTopic::DEFAULT_TOPIC_IDENTIFIER )
Returns number comments |
public static
object
|
#
display_comments( string $module_id, integer $id_in_module, string $topic_identifier, $number_comments_display, $authorizations, $display_from_number_comments = false )
Do not use, this is used for ajax display comments |