Class

CommentsService

Package: Content\Comments Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Kevin MASSY reidlos@phpboost.com Version: PHPBoost 5.2 - last update: 2018 01 04 Since: PHPBoost 3.0 - 2011 03 31 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: content/comments/CommentsService.class.php

This class allows you to use a comments system

Methods summary
public static
# __static( )
public static Template
# display( CommentsTopic $topic )

This function display the comments

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
# delete_comments_module( string $module_id )

Delete all comments module

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

Annonces