Class humhub\modules\space\widgets\Image

Inheritancehumhub\modules\space\widgets\Image » humhub\modules\ui\widgets\BaseImage » humhub\components\Widget » yii\base\Widget

Return space image or acronym

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$acronymCount integer Number of characters used in the acronym humhub\modules\space\widgets\Image
$height integer The height of the image humhub\modules\ui\widgets\BaseImage
$htmlOptions array Html options for the generated tag humhub\modules\ui\widgets\BaseImage
$imageOptions array Optional html options for the image tag humhub\modules\ui\widgets\BaseImage
$linkOptions array Html Options of the link humhub\modules\ui\widgets\BaseImage
$render boolean If set to false this widget won't be rendered humhub\components\Widget
$showTooltip string Show tooltip with further information about the space or the user (Only available when link is true) humhub\modules\ui\widgets\BaseImage
$space humhub\modules\space\models\Space humhub\modules\space\widgets\Image
$tooltipText string The tooltip text (default is users or spaces display name) humhub\modules\ui\widgets\BaseImage
$widgetLayout string Defines an optional layout humhub\components\Widget
$width integer The width of the image humhub\modules\ui\widgets\BaseImage

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
init() humhub\modules\ui\widgets\BaseImage
process() Process is a wrapper for the run method humhub\components\Widget
run() humhub\modules\space\widgets\Image
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

$acronymCount public property

Number of characters used in the acronym

$space public property

Method Details

getAcronym() protected method

protected void getAcronym ( )
getDynamicStyles() protected method

protected void getDynamicStyles ( $elementWidth )
run() public method

public void run ( )