CommentManager
in package
User Extended by Shawn Clake Class CommentManager User Extended is licensed under the MIT license.
Tags
Table of Contents
- canCreateComment() : mixed
- Returns whether or not a user is allowed to create a comment
- canDeleteComment() : bool
- Returns whether or not a user is allowed to delete a comment
- canEditComment() : bool
- Returns whether or not a user can edit a comment
- createComment() : bool
- Creates a comment for a user
- deleteComment() : mixed
- Deletes a comment specified by a comment ID
- editComment() : mixed
- Edits a comment
Methods
canCreateComment()
Returns whether or not a user is allowed to create a comment
public
static canCreateComment() : mixed
Return values
mixed —canDeleteComment()
Returns whether or not a user is allowed to delete a comment
public
static canDeleteComment( $commentId) : bool
Parameters
Return values
bool —canEditComment()
Returns whether or not a user can edit a comment
public
static canEditComment( $commentId) : bool
Parameters
Return values
bool —createComment()
Creates a comment for a user
public
static createComment( $userId, $content) : bool
Parameters
Return values
bool —deleteComment()
Deletes a comment specified by a comment ID
public
static deleteComment( $commentId) : mixed
Parameters
Return values
mixed —editComment()
Edits a comment
public
static editComment( $commentId, $content) : mixed