Method | Description | Returns |
---|---|---|
getRootComment() | Get the root comment | Comment |
getUpVotes() | Get the number of up votes for this comment | int |
getDownVotes() | Get the number of down votes for this comment | int |
isUpVotedByUser() | Check if the comment has been up voted by the currently authenticated user | bool |
isDownVotedByUser() | Check if the comment has been down voted by the currently authenticated user | bool |
getId() | int | |
getText() | string | |
isQuestion() | bool | |
getAnswer() | Comment | |
getQuestionForAnswer() | Comment | |
isAnswered() | bool | |
getCreated() | Get the date the record was created. | DateTime |
getModified() | Get the last modification date for the record. | DateTime |
getParent() | Comment | |
getChildren() | Collection (Comment) | |
getPage() | Page | |
getCreatedBy() | User | |
getVotes() | Collection (Vote) | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
Documentation\Models\Frontend\Comment
Comment