dmBridge PHP API
DMFileLinkViewer.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 DMFileLinkViewer extends DMAbstractViewer
00017 implements DMObjectViewerDelegate {
00018 
00022    public function getHTMLTag() {
00023       return sprintf(
00024          '<a href="%s">Download File</a>',
00025          DMString::websafe($this->getObject()->getFileURL()));
00026    }
00027 
00031    public function getHTMLTagNoJS() {
00032       return $this->getHTMLTag();
00033    }
00034 
00038    public function getName() {
00039       return "File Link Viewer";
00040    }
00041 
00042 }
 All Data Structures Functions Variables