HumHub Documentation (unofficial)

Viewable

The Viewable interface is used for Classes that can be rendered by Renderer components.

A Renderer can make use of the html, json or text represenation when rendering a viewable.

Tags
author

buddha

Table of Contents

Methods

getViewName()  : string
getViewParams()  : mixed
Returns an array of view parameter, required for rendering.
html()  : string
json()  : string
text()  : string

Methods

getViewName()

public getViewName() : string
Return values
string

viewname of this viewable

getViewParams()

Returns an array of view parameter, required for rendering.

public getViewParams([array<string|int, mixed> $params = [] ]) : mixed
Parameters
$params : array<string|int, mixed> = []

html()

public html() : string
Return values
string

html content representation of this viewable.

json()

public json() : string
Return values
string

json content representation of this viewable.

text()

public text() : string
Return values
string

text content representation of this viewable.


        
On this page

Search results