classes/paper/PaperComment.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00016 //$Id$
00017 
00019 define('COMMENT_TYPE_PEER_REVIEW', 0x01);
00020 define('COMMENT_TYPE_DIRECTOR_DECISION', 0x02);
00021 
00022 class PaperComment extends DataObject {
00023 
00027    function PaperComment() {
00028       parent::DataObject();
00029    }
00030 
00035    function getCommentId() {
00036       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00037       return $this->getId();
00038    }
00039 
00044    function setCommentId($commentId) {
00045       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00046       return $this->setId($commentId);
00047    }
00048 
00053    function getCommentType() {
00054       return $this->getData('commentType');
00055    }
00056 
00061    function setCommentType($commentType) {
00062       return $this->setData('commentType', $commentType);
00063    }
00064 
00069    function getRoleId() {
00070       return $this->getData('roleId');
00071    }
00072 
00077    function setRoleId($roleId) {
00078       return $this->setData('roleId', $roleId);
00079    }
00080 
00085    function getRoleName() {
00086       $roleDao =& DAORegistry::getDAO('RoleDAO');
00087       $roleName = $roleDao->getRoleName($this->getData('roleId'));
00088 
00089       return $roleName;
00090    }
00091 
00096    function getPaperId() {
00097       return $this->getData('paperId');
00098    }
00099 
00104    function setPaperId($paperId) {
00105       return $this->setData('paperId', $paperId);
00106    }
00107 
00112    function getAssocId() {
00113       return $this->getData('assocId');
00114    }
00115 
00120    function setAssocId($assocId) {
00121       return $this->setData('assocId', $assocId);
00122    }  
00123 
00128    function getAuthorId() {
00129       return $this->getData('authorId');
00130    }
00131 
00136    function setAuthorId($authorId) {
00137       return $this->setData('authorId', $authorId);
00138    }
00139 
00144    function getAuthorName() {
00145       static $authorFullName;
00146 
00147       if(!isset($authorFullName)) {
00148          $userDao =& DAORegistry::getDAO('UserDAO');
00149          $authorFullName = $userDao->getUserFullName($this->getAuthorId(), true);
00150       }
00151 
00152       return $authorFullName ? $authorFullName : '';
00153    }
00154 
00159    function getAuthorEmail() {
00160       static $authorEmail;
00161 
00162       if(!isset($authorEmail)) {
00163          $userDao =& DAORegistry::getDAO('UserDAO');
00164          $authorEmail = $userDao->getUserEmail($this->getAuthorId(), true);
00165       }
00166 
00167       return $authorEmail ? $authorEmail : '';
00168    }
00169 
00174    function getCommentTitle() {
00175       return $this->getData('commentTitle');
00176    }
00177 
00182    function setCommentTitle($commentTitle) {
00183       return $this->setData('commentTitle', $commentTitle);
00184    }
00185 
00190    function getComments() {
00191       return $this->getData('comments');
00192    }
00193 
00198    function setComments($comments) {
00199       return $this->setData('comments', $comments);
00200    }
00201 
00206    function getDatePosted() {
00207       return $this->getData('datePosted');
00208    }
00209 
00214    function setDatePosted($datePosted) {
00215       return $this->setData('datePosted', $datePosted);
00216    }
00217 
00222    function getDateModified() {
00223       return $this->getData('dateModified');
00224    }
00225 
00230    function setDateModified($dateModified) {
00231       return $this->setData('dateModified', $dateModified);
00232    }
00233 
00238    function getViewable() {
00239       return $this->getData('viewable');
00240    }
00241 
00246    function setViewable($viewable) {
00247       return $this->setData('viewable', $viewable);
00248    }
00249  }
00250 
00251 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7