Frontend | Backend | Api

Blogs\Models\Frontend\Comment

Comment

Method Description Returns
getId() int
getText() string
getCreated() Get the date the record was created. DateTime
getModified() Get the last modification date for the record. DateTime
getPublished() Get the date the record was published or is scheduled to be published. DateTime
isPublished() Check if the record is published. bool
getPerson() Person
getParent() Comment
getChildren() Collection
getPost() Post
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
isVersionedModel() Check whether a model is versioned bool
getAuthorName() Get the author name string
getAuthorEmail() Get the author email string