/
getCommentById
getCommentById
Description
Gets all the comment properties for a given id.
Parameters
Return Type
CComment
Example
Deletes all comments older than 1 year from page ID 11801.
number [] allComm = getAllCommentIds(11801);
interval year = "365d";
for(number c in allComm) {
CComment comm = getCommentById(c);
if(comm.created < (currentDate - year)) {
deleteComment(c)
}
}
See also
Peacock
, multiple selections available,
Related content
getCommentById
getCommentById
More like this
getCommentById
getCommentById
More like this
getAllCommentIds
getAllCommentIds
More like this
getAllCommentIds
getAllCommentIds
More like this
getComments
getComments
More like this
deleteComment
deleteComment
More like this