Свойство | Type | Description | |
---|---|---|---|
$comments | Reference to CommentsArray provided in constructor | ||
$field | |||
$options | Default options that may be overridden from constructor | ||
$page |
Méthode | Description | |
---|---|---|
__construct ( CommentArray $comments, array $options = [] ) | Construct the CommentList | |
getReplies ( integer | Comment $commentID ) : array | Get replies to the given comment ID, or 0 for root level comments | |
render ( ) : string | Rendering of comments for API demonstration and testing purposes (or feel free to use for production if suitable) | |
renderCheckActions ( ) : string | Check for URL-based comment approval actions | |
renderItem ( Comment $comment, $depth ) : string | Render the comment | |
renderStars ( Comment $comment ) | ||
renderVotes ( Comment $comment ) |
Méthode | Description | |
---|---|---|
renderList ( $parent_id, $depth ) |
public __construct ( CommentArray $comments, array $options = [] ) | ||
$comments | CommentArray | |
$options | array | Options that may override those provided with the class (see CommentList::$options) |
public getReplies ( integer | Comment $commentID ) : array | ||
$commentID | integer | Comment | |
Résultat | array |
public renderCheckActions ( ) : string | ||
Résultat | string |
public renderItem ( Comment $comment, $depth ) : string | ||
$comment | Comment | |
Résultat | string |
protected $comments |
protected $options |