Documentation

CommentManager

User Extended by Shawn Clake Class CommentManager User Extended is licensed under the MIT license.

Tags
author

Shawn Clake shawn.clake@gmail.com

link
https://github.com/ShawnClake/UserExtended
license

https://github.com/ShawnClake/UserExtended/blob/master/LICENSE MIT

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
$commentId :
Return values
bool

canEditComment()

Returns whether or not a user can edit a comment

public static canEditComment( $commentId) : bool
Parameters
$commentId :
Return values
bool

createComment()

Creates a comment for a user

public static createComment( $userId,  $content) : bool
Parameters
$userId :
$content :
Return values
bool

deleteComment()

Deletes a comment specified by a comment ID

public static deleteComment( $commentId) : mixed
Parameters
$commentId :
Return values
mixed

editComment()

Edits a comment

public static editComment( $commentId,  $content) : mixed
Parameters
$commentId :
$content :
Return values
mixed

Search results