Class humhub\modules\comment\widgets\CommentLink

Inheritancehumhub\modules\comment\widgets\CommentLink » yii\base\Widget
Available since version0.5

This widget is used to show a comment link inside the wall entry controls.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$mode \humhub\modules\comment\widgets\type humhub\modules\comment\widgets\CommentLink
$object Content Object humhub\modules\comment\widgets\CommentLink

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getCommentsCount() Returns count of existing comments humhub\modules\comment\widgets\CommentLink
run() Executes the widget. humhub\modules\comment\widgets\CommentLink


Hide inherited constants

ConstantValueDescriptionDefined By
MODE_INLINE 'inline' humhub\modules\comment\widgets\CommentLink
MODE_POPUP 'popup' humhub\modules\comment\widgets\CommentLink

Property Details

$mode public property
public \humhub\modules\comment\widgets\type $mode null
$object public property
public $object null

Method Details

getCommentsCount() public method

Returns count of existing comments

public Int getCommentsCount ( )
return Int

Comment Count

run() public method

Executes the widget.

public void run ( )