getData('commentType'); } /** * set comment type * @param $commentType int COMMENT_TYPE_... */ function setCommentType($commentType) { $this->setData('commentType', $commentType); } /** * get role id * @return int */ function getRoleId() { return $this->getData('roleId'); } /** * set role id * @param $roleId int */ function setRoleId($roleId) { $this->setData('roleId', $roleId); } /** * get submission id * @return int */ function getSubmissionId() { return $this->getData('submissionId'); } /** * set submission id * @param $submissionId int */ function setSubmissionId($submissionId) { $this->setData('submissionId', $submissionId); } /** * get assoc id * @return int */ function getAssocId() { return $this->getData('assocId'); } /** * set assoc id * @param $assocId int */ function setAssocId($assocId) { $this->setData('assocId', $assocId); } /** * get author id * @return int */ function getAuthorId() { return $this->getData('authorId'); } /** * set author id * @param $authorId int */ function setAuthorId($authorId) { $this->setData('authorId', $authorId); } /** * get author name * @return string */ function getAuthorName() { // Reference used to set if not already fetched $authorFullName =& $this->getData('authorFullName'); if(!isset($authorFullName)) { $userDao = DAORegistry::getDAO('UserDAO'); $authorFullName = $userDao->getUserFullName($this->getAuthorId(), true); } return $authorFullName ? $authorFullName : ''; } /** * get author email * @return string */ function getAuthorEmail() { // Reference used to set if not already fetched $authorEmail =& $this->getData('authorEmail'); if(!isset($authorEmail)) { $userDao = DAORegistry::getDAO('UserDAO'); $authorEmail = $userDao->getUserEmail($this->getAuthorId(), true); } return $authorEmail ? $authorEmail : ''; } /** * get comment title * @return string */ function getCommentTitle() { return $this->getData('commentTitle'); } /** * set comment title * @param $commentTitle string */ function setCommentTitle($commentTitle) { $this->setData('commentTitle', $commentTitle); } /** * get comments * @return string */ function getComments() { return $this->getData('comments'); } /** * set comments * @param $comments string */ function setComments($comments) { $this->setData('comments', $comments); } /** * get date posted * @return date */ function getDatePosted() { return $this->getData('datePosted'); } /** * set date posted * @param $datePosted date */ function setDatePosted($datePosted) { $this->setData('datePosted', $datePosted); } /** * get date modified * @return date */ function getDateModified() { return $this->getData('dateModified'); } /** * set date modified * @param $dateModified date */ function setDateModified($dateModified) { $this->setData('dateModified', $dateModified); } /** * get viewable * @return boolean */ function getViewable() { return $this->getData('viewable'); } /** * set viewable * @param $viewable boolean */ function setViewable($viewable) { $this->setData('viewable', $viewable); } } ?>