dmBridge PHP API
DMObjectViewerDefinition.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 final class DMObjectViewerDefinition {
00017 
00019    private $class;
00021    private $max_file_size;
00023    private $media_type;
00025    private $width;
00027    private $height;
00028 
00029 
00033    public function __construct(DMMediaType $media_type) {
00034       $this->setMediaType($media_type);
00035    }
00036 
00040    public function getClass() {
00041       return $this->class;
00042    }
00043 
00047    public function setClass($str) {
00048       $this->class = $str;
00049    }
00050 
00054    public function getHeight() {
00055       return $this->height;
00056    }
00057 
00061    public function setHeight($int) {
00062       $this->height = (int) $int;
00063    }
00064 
00068    public function getMaxFileSize() {
00069       return $this->max_file_size;
00070    }
00071 
00075    public function setMaxFileSize($int) {
00076       $this->max_file_size = (int) $int;
00077    }
00078 
00082    public function getMediaType() {
00083       return $this->media_type;
00084    }
00085 
00089    public function setMediaType(DMMediaType $media_type) {
00090       $this->media_type = $media_type;
00091    }
00092 
00096    public function getWidth() {
00097       return $this->width;
00098    }
00099 
00103    public function setWidth($str) {
00104       $this->width = $str;
00105    }
00106 
00107 }
 All Data Structures Functions Variables