An object viewer interface that all object viewer classes, whether built-in or custom, are required to implement.
More...
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:
-
| DMObject | obj The object to "view" |
| DMMediaType | media_type Valid Internet media type |
| string | width CSS-compatible width string |
| int | height |
Member Function Documentation
| DMObjectViewerDelegate::getHTMLTag |
( |
| ) |
|
| DMObjectViewerDelegate::getHTMLTagNoJS |
( |
| ) |
|
| DMObjectViewerDelegate::getName |
( |
| ) |
|
| DMObjectViewerDelegate::setHeight |
( |
$ |
height | ) |
|
| DMObjectViewerDelegate::setMediaType |
( |
DMMediaType $ |
media_type | ) |
|
| DMObjectViewerDelegate::setObject |
( |
DMObject $ |
obj | ) |
|
| DMObjectViewerDelegate::setWidth |
( |
$ |
width | ) |
|
- Parameters:
-
| string | width 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: