dmBridge PHP API
DMAbstractViewer Class Reference

An abstract object viewer class that all object viewer classes, whether built-in or custom-written, should extend. More...

Inheritance diagram for DMAbstractViewer:

Public Member Functions

Protected Member Functions


Detailed Description

An abstract object viewer class that all object viewer classes, whether built-in or custom-written, should extend.

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

Definition at line 16 of file DMAbstractViewer.php.


Constructor & Destructor Documentation

DMAbstractViewer::__construct ( DMObject obj,
DMMediaType media_type,
width,
height 
)
Parameters:
DMObjectobj
DMMediaTypemedia_type
intwidth
intheight

Definition at line 36 of file DMAbstractViewer.php.


Member Function Documentation

DMAbstractViewer::setHeight ( height)
Parameters:
stringheight Height, including CSS units

Definition at line 121 of file DMAbstractViewer.php.

Referenced by __construct().

DMAbstractViewer::setHelper ( DMGenericTemplateHelper helper)
Parameters:
DMGenericTemplateHelperhelper

Definition at line 63 of file DMAbstractViewer.php.

DMAbstractViewer::setMediaType ( DMMediaType media_type)
Parameters:
DMMediaTypemedia_type

Definition at line 77 of file DMAbstractViewer.php.

Referenced by __construct().

DMAbstractViewer::setObject ( DMObject obj)
Parameters:
DMObjectobj

Definition at line 91 of file DMAbstractViewer.php.

Referenced by __construct().

DMAbstractViewer::setWidth ( width)
Parameters:
stringwidth Width, including CSS units

Definition at line 106 of file DMAbstractViewer.php.

Referenced by __construct().

DMAbstractViewer::viewerWillRender ( )

Default implementation that does nothing.

See DMObjectViewerDelegate for documentation of this method.

Returns:
void

Reimplemented in SampleCustomViewer, DMMonocle2Viewer, DMMonocleViewer, and DMPaginatedPDFViewer.

Definition at line 50 of file DMAbstractViewer.php.


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