dmBridge PHP API
DMNullViewer.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 DMNullViewer extends DMAbstractViewer implements DMObjectViewerDelegate {
00017 
00021    private $message;
00022 
00026    public function getHTMLTag() {
00027       return sprintf(
00028          '<div id="dmNullViewer" style="width:%s; height:%s">
00029             <p>%s</p>
00030          </div>',
00031          $this->getWidth(), $this->getHeight(),
00032          DMString::websafe($this->getMessage()));
00033    }
00034 
00038    public function getHTMLTagNoJS() {
00039       return $this->getHTMLTag();
00040    }
00041 
00045    public function getMessage() {
00046       return $this->message;
00047    }
00048 
00052    public function setMessage($msg) {
00053       $this->message = (string) $msg;
00054    }
00055 
00059    public function getName() {
00060       return "Null Viewer";
00061    }
00062 
00063 }
 All Data Structures Functions Variables