API / Minn\Runtime / CommentTags

CommentTags final class

Minn\Runtime\CommentTags · public/minn/src/Minn/Runtime/CommentTags.php · 59 lines

What the comment template tags tell about a comment (the one being read when none is named): when it was written and its author's address, each through the filter plugins hook there.

Public

staticlink(mixed $comment = NULL, mixed $args = array ( )): mixed#

A comment's address, at the page of comments it is on (get_comment_link), as get_comment_link leaves it.

staticpostLink(mixed $post = 0): mixed#

A post's address at its comments, or at the form when it has none (get_comments_link), as get_comments_link leaves it.

staticauthor(mixed $commentId = 0): mixed#

A comment's author (get_comment_author), "Anonymous" for none, as get_comment_author leaves it.

staticauthorRss(): mixed#

The author of the comment being read, for a feed (get_comment_author_rss), as comment_author_rss leaves it.

statictime(mixed $format = '', mixed $gmt = false, mixed $translate = true, mixed $commentId = 0): mixed#

When a comment was written (get_comment_time): in the format given or the site's time format, local or UTC, names translated unless asked not to be; empty for no comment.

staticauthorUrl(mixed $commentId = 0): mixed#

A comment author's address, escaped (get_comment_author_url); empty when none was given.