Class humhub\modules\user\widgets\Image

Inheritancehumhub\modules\user\widgets\Image » humhub\components\Widget » yii\base\Widget
Available since version1.2

Image shows the user profile image

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$height integer The image height in pixel (optional) humhub\modules\user\widgets\Image
$htmlOptions array Optional html options for the base tag humhub\modules\user\widgets\Image
$imageOptions array Optional html options for the image tag humhub\modules\user\widgets\Image
$linkOptions array Optional html options for the link tag humhub\modules\user\widgets\Image
$render boolean If set to false this widget won't be rendered humhub\components\Widget
$showTooltip string Show tooltip with further information about the user humhub\modules\user\widgets\Image
$tooltipText string The tooltip text (default is users display name) humhub\modules\user\widgets\Image
$user humhub\modules\user\models\User humhub\modules\user\widgets\Image
$width integer The image width in pixcel humhub\modules\user\widgets\Image

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() humhub\modules\user\widgets\Image
process() Process is a wrapper for the run method humhub\components\Widget
run() humhub\modules\user\widgets\Image
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

Property Details

$height public property

The image height in pixel (optional)

public integer $height null
$htmlOptions public property

Optional html options for the base tag

public array $htmlOptions = []
$imageOptions public property

Optional html options for the image tag

public array $imageOptions = []

Add link to user profile

public boolean $link true
$linkOptions public property

Optional html options for the link tag

public array $linkOptions = []
$showTooltip public property

Show tooltip with further information about the user

public string $showTooltip false
$tooltipText public property

The tooltip text (default is users display name)

public string $tooltipText null
$user public property
$width public property

The image width in pixcel

public integer $width 50

Method Details

init() public method

public void init ( )
run() public method

public void run ( )