00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 # Copyright © 2009, 2010 Board of Regents of the Nevada System of Higher
00005 # Education, on behalf of the University of Nevada, Las Vegas
00006 #
00007
00018 abstract class dmAbstractViewer {
00019
00020 private $object, $mime_type, $width, $height;
00021
00022
00029 public function __construct(dmObject $obj, $mime, $width, $height) {
00030 $this->setObject($obj);
00031 $this->setMIMEType($mime);
00032 $this->setWidth($width);
00033 $this->setHeight($height);
00034 }
00035
00039 protected final function getMIMEType() {
00040 return $this->mime_type;
00041 }
00042
00046 public final function setMIMEType($str) {
00047 $this->mime_type = $str;
00048 }
00049
00053 protected final function getObject() {
00054 return $this->object;
00055 }
00056
00060 public final function setObject(dmObject $obj) {
00061 $this->object = $obj;
00062 }
00063
00067 protected final function getWidth() {
00068 return $this->width;
00069 }
00070
00074 public final function setWidth($int) {
00075 $this->width = $int;
00076 }
00077
00081 protected final function getHeight() {
00082 return $this->height;
00083 }
00084
00088 public final function setHeight($int) {
00089 $this->height = $int;
00090 }
00091
00092 }