CommentField::allowCommentParent()

Allow given Comment to have given parent comment?

Available since version 3.0.149.

Usage

// basic usage
$bool = $commentField->allowCommentParent(Comment $comment, $parent);

// usage with all arguments
$bool = $commentField->allowCommentParent(Comment $comment, $parent, bool $verbose = false);

Arguments

NameType(s)Description
$commentComment
$parentComment int
$verbose (optional)bool

Report reason why not to standard errors? Default:false

Return value

bool


CommentField methods and properties

API reference based on ProcessWire core version 3.0.251