g
Frontend | Backend | Api

Documentation\Models\Backend\Comment

Comment

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
getAvailableUsers() Get the available users for the comment Collection
getHateoasLinks() Get the HATEOAS links for the record array
getCreateChildUrl() Get the url for creating a child record. string
getEditUrl() Get the url for editing the record. string
getDeleteUrl() Get the url for deleting the record. string
getPublishUrl() Get the url for publishing the record. string
getManageUrl() Get the url for managing records. string
getPermissionsUrl() Get the url for editing the permissions of the record. string
getCheckPermissionsUrl() Get the url for checking user permissions for this record. string