API docs     >     General

Comments

Description

The Comments class, which represents an instance of the Comments manager.

Class members

Methods

Constructor of the Comments class
add
Adds a Comment to the Object
Gets all Comments of this Object
Counts all Comments of the Object
Gets the latest Comment of a specific User
Gets Comment settings
Checks if commenting on this Object is allowed
Removes a specific Comment
Sets the status of a specific Comment to "approved"
Changes the content of a specific Comment
Removes the spam marker for a specific Comment
Sets Comment settings
Marks a specific Comment as spam
Sets commenting on the Object to allowed / closed
Sets the status of a specific Comment to "unapproved"

Constants

Following error codes may be returned if something goes wrong when working with comments:

ERROR_NONE  
ERROR_COMMENTS_UNKNOWN  
ERROR_COMMENTS_AUTHENTICATION_NEEDED  
ERROR_COMMENTS_NO_MOD_RIGHTS  
ERROR_COMMENTS_NO_COMMENT_RIGHTS  
ERROR_COMMENTS_BLACKLISTED_WORD  
ERROR_COMMENTS_MINIMUM_POST_INTERVAL_EXCEEDED  
ERROR_COMMENTS_COMMENTING_IS_CLOSED