Class humhub\modules\notification\renderer\WebRenderer

Inheritancehumhub\modules\notification\renderer\WebRenderer » humhub\components\rendering\DefaultViewPathRenderer » humhub\components\rendering\ViewPathRenderer » yii\base\BaseObject
Implementshumhub\components\rendering\Renderer

The WebTargetRenderer is used to render Notifications for the WebTarget.

See also humhub\modules\notification\targets\WebTarget.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$defaultView string Fallback view humhub\modules\notification\renderer\WebRenderer
$defaultViewPath string Fallback view path humhub\modules\notification\renderer\WebRenderer
$parent boolean If set to true the renderer will search in the parents view directory for the view. humhub\components\rendering\ViewPathRenderer
$subPath string A subpath within the view folder used for searching the view e. humhub\components\rendering\ViewPathRenderer
$viewPath string View path humhub\components\rendering\ViewPathRenderer

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getViewFile() Returns the view file for the given Viewable. humhub\components\rendering\DefaultViewPathRenderer
getViewPath() Returns the directory containing the view files for this event. humhub\components\rendering\ViewPathRenderer
render() Renders the viewable by searching the viewable's viewName within the given viewPath. humhub\components\rendering\ViewPathRenderer
renderView() Helper function for rendering a Viewable with the given viewParams. humhub\components\rendering\ViewPathRenderer

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
suffix() Checks if the given $viewName has a file suffix or not. humhub\components\rendering\ViewPathRenderer

Property Details

$defaultView public property

Fallback view

public string $defaultView '@notification/views/default.php'
$defaultViewPath public property

Fallback view path

public string $defaultViewPath '@notification/views'