Public Member Functions | |
init () | |
run () | |
getCurrentPage () | |
canReply () | |
createPaginationUrl ($page) | |
getSafeCommentAttributes ($comments) | |
getAvatar ($comment) |
Public Attributes | |
$oneLevelReply = false | |
$hash | |
$formWidget | |
$commentsPerPage = 5 | |
$paginationPagesCount = 5 | |
![]() | |
$contentId | |
$isPreview = false |
Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales @gen tics. comhttp://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.
Widget for view comments for current model
Definition at line 12 of file CommentsListWidget.php.
CommentsListWidget::canReply | ( | ) |
Check if reply possibility allowed for current comments list
Definition at line 187 of file CommentsListWidget.php.
CommentsListWidget::createPaginationUrl | ( | $page | ) |
Returns current page
integer | $page | page number |
Definition at line 199 of file CommentsListWidget.php.
CommentsListWidget::getAvatar | ( | $comment | ) |
Get comment author avatar image
array | $comment | a comment |
Definition at line 251 of file CommentsListWidget.php.
References Gravatar\getImage().
CommentsListWidget::getCurrentPage | ( | ) |
Returns current page
Definition at line 177 of file CommentsListWidget.php.
CommentsListWidget::getSafeCommentAttributes | ( | $comments | ) |
Returns comment attributes
array | $comments | array of comments |
Definition at line 225 of file CommentsListWidget.php.
CommentsListWidget::init | ( | ) |
Make widgets options hash key and store options in session
Reimplemented from CommentsBaseWidget.
Definition at line 44 of file CommentsListWidget.php.
CommentsListWidget::run | ( | ) |
Find all comments by contentId. Preload child comments.
Definition at line 65 of file CommentsListWidget.php.