Class humhub\modules\user\widgets\Image

Inheritancehumhub\modules\user\widgets\Image » humhub\modules\ui\widgets\BaseImage » 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 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
$tooltipText string The tooltip text (default is users or spaces display name) humhub\modules\ui\widgets\BaseImage
$user humhub\modules\user\models\User humhub\modules\user\widgets\Image
$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\user\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

$user public property

Method Details

run() public method

public void run ( )