Comment::allowChildren() Comment::allowChildren() Comment::allowChildren() | bool | Are child comments (replies) allowed? | |
Comment::children() Comment::children() Comment::children() | CommentArray | Return children comments, if applicable Can also be used as property: Comment::children | |
| string | Clean a comment string by issuing several filters | |
Comment::depth() Comment::depth() Comment::depth() | int | Get current comment depth Can also be used as property: Comment::depth | |
Comment::editUrl() Comment::editUrl() Comment::editUrl() | string | Return URL to edit comment | |
Comment::get() Comment::get(string $key) Comment::get(string $key) | mixed | Get property | |
Comment::getField() Comment::getField() Comment::getField() | null Field CommentField | Get Field that this Comment belongs to | |
Comment::getFormatted() Comment::getFormatted(string $key) Comment::getFormatted(string $key, array $options = []) | string | Same as get() but with output formatting applied | |
| string | Get comment text as formatted string | |
Comment::getGravatar() Comment::getGravatar(string $email) Comment::getGravatar(string $email, string $rating = 'g', string $imageset = 'mm', int $size = 80) | string | Returns a URL to this user's gravatar image (static version, use non-static gravatar() function unless you specifically need static) | |
Comment::getMeta() Comment::getMeta() Comment::getMeta($key = null) | string array int float mixed null | Get meta data property value (custom fields for comments) | |
Comment::getPage() Comment::getPage() Comment::getPage() | null Page | Get Page that this Comment belongs to | |
Comment::gravatar() Comment::gravatar() Comment::gravatar(string $rating = 'g', string $imageset = 'mm', int $size = 80) | string | Returns a URL to this user's gravatar image | |
Comment::hasChild() Comment::hasChild($comment) Comment::hasChild($comment, bool $recursive = true) | bool | Does this comment have the given child comment? | |
Comment::httpUrl() Comment::httpUrl() Comment::httpUrl() | string | Return full http URL to view comment | |
Comment::isApproved() Comment::isApproved() Comment::isApproved() | None | Returns true if the comment is approved and thus appearing on the site | |
Comment::meta() Comment::meta() Comment::meta($key = null, $value = null) | array string int mixed | Get or set meta data property | |
Comment::numChildren() Comment::numChildren() Comment::numChildren(array $options = []) | int | Return number of children (replies) for this comment Can also be used as property: Comment::numChildren | |
Comment::parent() Comment::parent() Comment::parent() | Comment null | Return the parent comment, if applicable Can also be used as property: Comment::parent | |
Comment::parents() Comment::parents() Comment::parents() | CommentArray | Get CommentArray of all parent comments for this one Can also be used as property: Comment::parents | |
Comment::quiet() Comment::quiet() Comment::quiet(bool $quiet = null) | bool | Get or set quiet mode | |
Comment::removeMeta() Comment::removeMeta(string $key) Comment::removeMeta(string $key) | self | Remove given meta data property or '*' to remove all | |
Comment::renderStars() Comment::renderStars() Comment::renderStars(array $options = []) | string | Render stars markup | |
Comment::set() Comment::set(string $key, mixed $value) Comment::set(string $key, mixed $value) | self WireData | Set property | |
Comment::setField() Comment::setField(Field $field) Comment::setField(Field $field) | None | Set Field that this Comment belongs to | |
Comment::setMeta() Comment::setMeta($key) Comment::setMeta($key, $value = null) | self | Set meta data (custom fields for comments) | |
Comment::setPage() Comment::setPage(Page $page) Comment::setPage(Page $page) | None | Set Page that this Comment belongs to | |
Comment::url() Comment::url() Comment::url(bool $http = false) | string | Return URL to view comment | |
Comment::wired() Comment::wired() Comment::wired() | None | Wired to API | |