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 
00013 class DMObjectViewerDefinition {
00014 
00016    private $class;
00018    private $media_type;
00020    private $width;
00022    private $height;
00023 
00024 
00028    public function __construct(DMMediaType $media_type) {
00029       $this->setMediaType($media_type);
00030    }
00031 
00035    public final function getClass() {
00036       return $this->class;
00037    }
00038 
00042    public final function setClass($str) {
00043       $this->class = $str;
00044    }
00045 
00049    public final function getHeight() {
00050       return $this->height;
00051    }
00052 
00056    public final function setHeight($int) {
00057       $this->height = (int) $int;
00058    }
00059 
00063    public final function getMediaType() {
00064       return $this->media_type;
00065    }
00066 
00070    public final function setMediaType(DMMediaType $media_type) {
00071       $this->media_type = $media_type;
00072    }
00073 
00077    public final function getWidth() {
00078       return $this->width;
00079    }
00080 
00084    public final function setWidth($str) {
00085       $this->width = $str;
00086    }
00087 
00088 }
 All Data Structures Functions Variables