dmBridge PHP API
DMQuickTimeViewer.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 #
00005 # Copyright © 2009, 2010, 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00016 class DMQuickTimeViewer extends DMAbstractViewer
00017 implements DMObjectViewerDelegate {
00018 
00022    public function getHTMLTag() {
00023       return sprintf(
00024          '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
00025          codebase="http://www.apple.com/qtactivex/qtplugin.cab"
00026          width="%s" height="%d">
00027             <param name="src" value="%s" />
00028             <param name="controller" value="true" />
00029             <param name="autoplay" value="false" />
00030             <object type="%s" data="%s">
00031                <param name="controller" value="true" />
00032                <param name="autoplay" value="false" />
00033                <a href="%s">%s</a>
00034             </object>
00035          </object>',
00036          $this->getWidth(), $this->getHeight(),
00037          DMString::websafe($this->getObject()->getFileURL()),
00038          $this->getMediaType(),
00039          DMString::websafe($this->getObject()->getFileURL()),
00040          DMString::websafe($this->getObject()->getFileURL()),
00041          DMString::websafe($this->getObject()->getFilename())
00042       );
00043    }
00044 
00048    public function getHTMLTagNoJS() {
00049       return $this->getHTMLTag();
00050    }
00051 
00055    public function getName() {
00056       return "QuickTime Viewer";
00057    }
00058 
00059 }
 All Data Structures Functions Variables