...
Table plus | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Description
Excerpt | ||
---|---|---|
| ||
Gets all the comment properties for a given id. |
Gets all the comment properties for a given id.
Parameters
Table plus | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
|
...
|
Return
...
Type
CComment
The comment representation with the following keys:
...
Key name
...
Description
...
id
...
Id of the page comment.
...
Example 1
...
Example
Deletes all comments older than 1 year from page ID 11801.
Code Block | ||
---|---|---|
| ||
number [] allComm = getAllCommentIds(11801); interval year = "365d"; for(number c in allComm) { CComment comm = getCommentById(c); if(comm.created < (currentDate - year)) { deleteComment(c) } } |
Deletes all comments older than 1 year from page ID 11801.
See also
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|