Class humhub\modules\comment\widgets\CommentLink

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

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getCommentsCount() Returns count of existing comments humhub\modules\comment\widgets\CommentLink
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
process() Process is a wrapper for the run method humhub\components\Widget
run() humhub\modules\comment\widgets\CommentLink
widget() Creates a widget instance and runs it. humhub\components\Widget

Events

Hide inherited events

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

Constants

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 string $mode null
$object public property

Method Details

getCommentsCount() public method

Returns count of existing comments

public Int getCommentsCount ( )
return Int

The total amount of comments

run() public method

public void run ( )