• Main Page
  • Modules
  • Classes
  • Files
  • File List

classes/monograph/Representative.inc.php

00001 <?php
00016 class Representative extends DataObject {
00020    function Representative() {
00021       parent::DataObject();
00022    }
00023 
00028    function getMonographId() {
00029       return $this->getData('monographId');
00030    }
00031 
00036    function setMonographId($monographId) {
00037       return $this->setData('monographId', $monographId);
00038    }
00039 
00044    function setRole($role) {
00045       $this->setData('role', $role);
00046    }
00047 
00052    function getRole() {
00053       return $this->getData('role');
00054    }
00055 
00060    function getNameForONIXCode() {
00061       $onixCodelistItemDao =& DAORegistry::getDAO('ONIXCodelistItemDAO');
00062       $listName = null;
00063       if ($this->getIsSupplier()) {
00064          $listName = 'List93'; // List93 -> Publisher to retailers, Wholesaler, etc
00065       } else {
00066          $listName = 'List69'; // List93 -> Local Publisher, Sales Agent, etc
00067       }
00068       $codes =& $onixCodelistItemDao->getCodes($listName);
00069       return $codes[$this->getRole()];
00070    }
00071 
00076    function setRepresentativeIdType($representativeIdType) {
00077       $this->setData('representativeIdType', $representativeIdType);
00078    }
00079 
00084    function getRepresentativeIdType() {
00085       return $this->getData('representativeIdType');
00086    }
00087 
00092    function setRepresentativeIdValue($representativeIdValue) {
00093       $this->setData('representativeIdValue', $representativeIdValue);
00094    }
00095 
00100    function getRepresentativeIdValue() {
00101       return $this->getData('representativeIdValue');
00102    }
00103 
00108    function getName() {
00109       return $this->getData('name');
00110    }
00111 
00116    function setName($name) {
00117       $this->setData('name', $name);
00118    }
00119 
00124    function getPhone() {
00125       return $this->getData('phone');
00126    }
00127 
00132    function setPhone($phone) {
00133       $this->setData('phone', $phone);
00134    }
00135 
00140    function getFax() {
00141       return $this->getData('fax');
00142    }
00143 
00148    function setFax($fax) {
00149       $this->setData('fax', $fax);
00150    }
00151 
00156    function getEmail() {
00157       return $this->getData('email');
00158    }
00159 
00164    function setEmail($email) {
00165       $this->setData('email', $email);
00166    }
00167 
00172    function getUrl() {
00173       return $this->getData('url');
00174    }
00175 
00180    function setUrl($url) {
00181       $this->setData('url', $url);
00182    }
00183 
00188    function getIsSupplier() {
00189       return $this->getData('isSupplier');
00190    }
00191 
00196    function setIsSupplier($isSupplier) {
00197       $this->setData('isSupplier', $isSupplier);
00198    }
00199 }
00200 ?>

Generated on Mon Sep 17 2012 13:58:55 for Open Monograph Press by  doxygen 1.7.1