Class humhub\modules\comment\widgets\Comment

Inheritancehumhub\modules\comment\widgets\Comment » humhub\components\Widget » yii\base\Widget

This widget is used to show a single comment.

It will used by the CommentsWidget and the CommentController to show comments.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$comment humhub\modules\comment\models\Comment The comment humhub\modules\comment\widgets\Comment
$justEdited boolean Indicator that comment has just changed humhub\modules\comment\widgets\Comment
$render boolean If set to false this widget won't be rendered humhub\components\Widget

Public Methods

Hide inherited methods

MethodDescriptionDefined By
process() Process is a wrapper for the run method humhub\components\Widget
run() humhub\modules\comment\widgets\Comment
widget() Creates a widget instance and runs it. humhub\components\Widget


Hide inherited events

EventTypeDescriptionDefined By
EVENT_CREATE humhub\libs\WidgetCreateEvent An event raised before creating a widget. humhub\components\Widget

Property Details

$comment public property

The comment

$justEdited public property

Indicator that comment has just changed

public boolean $justEdited false

Method Details

run() public method

public void run ( )