dmBridge PHP API
DMObjectViewerDelegate Interface Reference

An object viewer interface that all object viewer classes, whether built-in or custom, are required to implement. More...

Inheritance diagram for DMObjectViewerDelegate:

Public Member Functions


Detailed Description

An object viewer interface that all object viewer classes, whether built-in or custom, are required to implement.

See also:
DMGenericObjectViewer
Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php

Definition at line 17 of file DMObjectViewerDelegate.php.


Constructor & Destructor Documentation

DMObjectViewerDelegate::__construct ( DMObject obj,
DMMediaType media_type,
width,
height 
)
Parameters:
DMObjectobj The object to "view"
DMMediaTypemedia_type Valid Internet media type
stringwidth CSS-compatible width string
intheight

Member Function Documentation

DMObjectViewerDelegate::getHTMLTag ( )
DMObjectViewerDelegate::getHTMLTagNoJS ( )
DMObjectViewerDelegate::getName ( )
DMObjectViewerDelegate::setHeight ( height)
Parameters:
intheight HTML height
DMObjectViewerDelegate::setMediaType ( DMMediaType media_type)
Parameters:
DMMediaTypemedia_type Valid media (MIME) type
DMObjectViewerDelegate::setObject ( DMObject obj)
Parameters:
DMObjectobj The object to "view"
DMObjectViewerDelegate::setWidth ( width)
Parameters:
stringwidth HTML width, as a CSS-compatible width string
DMObjectViewerDelegate::viewerWillRender ( )

Delegate method, called before the viewer is rendered.

Necessary scripts, stylesheets, etc. should be added here.

Implemented in SampleCustomViewer, and DMMonocleViewer.


The documentation for this interface was generated from the following file:
 All Data Structures Functions Variables