class ModuleRenderer extends DocumentRenderer

HTML document renderer for a single module

Methods

__construct( Document $doc)

Class constructor

string
render( string $module, array $attribs = array(), string $content = null)

Renders a module script and returns the results as a string

string
getContentType()

Return the content type of the renderer

Details

__construct( Document $doc)

Class constructor

Parameters

Document $doc A reference to the Document object that instantiated the renderer

string render( string $module, array $attribs = array(), string $content = null)

Renders a module script and returns the results as a string

Parameters

string $module The name of the module to render
array $attribs Associative array of values
string $content Override the output of the renderer

Return Value

string The output of the script

string getContentType()

Return the content type of the renderer

Return Value

string The contentType