NZTA\FlagComments\Extensions\FlagCommentExtension
Synopsis
class FlagCommentExtension
extends DataExtension
{
- // members
- private static array $db = ;
- // methods
- public void updateCMSFields()
- public bool canFlag()
- public string FlagLink()
- public string RemoveFlaggedCommentLink()
- public string UnflagLink()
- public bool doFlag()
- public bool doUnflag()
- public bool doRemoveFlaggedComment()
- public void updateReplies()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db — array
Methods
public
- FlagLink() — Returns a link to flag the current comment
- RemoveFlaggedCommentLink() — Returns a link to remove a flagged comment
- UnflagLink() — Returns a link to unflag a comment
- canFlag() — Checks if the given user can flag a comment
- doFlag() — Flags the current comment
- doRemoveFlaggedComment() — Remove a comment which has been flagged
- doUnflag() — Remove the flag on a comment
- updateCMSFields()
- updateReplies() — Filters flagged and removed replies