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

classes/monograph/MonographComment.inc.php

00001 <?php
00002 
00017 define('COMMENT_TYPE_PEER_REVIEW', 0x01);
00018 define('COMMENT_TYPE_EDITOR_DECISION', 0x02);
00019 define('COMMENT_TYPE_COPYEDIT', 0x03);
00020 define('COMMENT_TYPE_LAYOUT', 0x04);
00021 define('COMMENT_TYPE_PROOFREAD', 0x05);
00022 
00023 class MonographComment extends DataObject {
00027    function MonographComment() {
00028       parent::DataObject();
00029    }
00030 
00035    function getCommentId() {
00036       return $this->getData('commentId');
00037    }
00038 
00043    function setCommentId($commentId) {
00044       return $this->setData('commentId', $commentId);
00045    }
00046 
00051    function getCommentType() {
00052       return $this->getData('commentType');
00053    }
00054 
00059    function setCommentType($commentType) {
00060       return $this->setData('commentType', $commentType);
00061    }
00062 
00067    function getRoleId() {
00068       return $this->getData('roleId');
00069    }
00070 
00075    function setRoleId($roleId) {
00076       return $this->setData('roleId', $roleId);
00077    }
00078 
00083    function getRoleName() {
00084       $role = new Role($this->getData('roleId'));
00085       return $role->getRoleName();
00086    }
00087 
00092    function getMonographId() {
00093       return $this->getData('monographId');
00094    }
00095 
00100    function setMonographId($monographId) {
00101       return $this->setData('monographId', $monographId);
00102    }
00103 
00108    function getAssocId() {
00109       return $this->getData('assocId');
00110    }
00111 
00116    function setAssocId($assocId) {
00117       return $this->setData('assocId', $assocId);
00118    }
00119 
00124    function getAuthorId() {
00125       return $this->getData('authorId');
00126    }
00127 
00132    function setAuthorId($authorId) {
00133       return $this->setData('authorId', $authorId);
00134    }
00135 
00140    function getAuthorName() {
00141       $authorFullName =& $this->getData('authorFullName');
00142 
00143       if(!isset($authorFullName)) {
00144          $userDao =& DAORegistry::getDAO('UserDAO');
00145          $authorFullName = $userDao->getUserFullName($this->getAuthorId(), true);
00146       }
00147 
00148       return $authorFullName ? $authorFullName : '';
00149    }
00150 
00155    function getAuthorEmail() {
00156       $authorEmail =& $this->getData('authorEmail');
00157 
00158       if(!isset($authorEmail)) {
00159          $userDao =& DAORegistry::getDAO('UserDAO');
00160          $authorEmail = $userDao->getUserEmail($this->getAuthorId(), true);
00161       }
00162 
00163       return $authorEmail ? $authorEmail : '';
00164    }
00165 
00170    function getCommentTitle() {
00171       return $this->getData('commentTitle');
00172    }
00173 
00178    function setCommentTitle($commentTitle) {
00179       return $this->setData('commentTitle', $commentTitle);
00180    }
00181 
00186    function getComments() {
00187       return $this->getData('comments');
00188    }
00189 
00194    function setComments($comments) {
00195       return $this->setData('comments', $comments);
00196    }
00197 
00202    function getDatePosted() {
00203       return $this->getData('datePosted');
00204    }
00205 
00210    function setDatePosted($datePosted) {
00211       return $this->setData('datePosted', $datePosted);
00212    }
00213 
00218    function getDateModified() {
00219       return $this->getData('dateModified');
00220    }
00221 
00226    function setDateModified($dateModified) {
00227       return $this->setData('dateModified', $dateModified);
00228    }
00229 
00234    function getViewable() {
00235       return $this->getData('viewable');
00236    }
00237 
00242    function setViewable($viewable) {
00243       return $this->setData('viewable', $viewable);
00244    }
00245 }
00246 
00247 ?>

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