00001 <?php
00002
00020
00021
00022
00023 class Comment extends DataObject {
00024
00028 function Comment() {
00029 parent::DataObject();
00030 $this->setPosterIP(Request::getRemoteAddr());
00031 }
00032
00037 function getCommentId() {
00038 return $this->getData('commentId');
00039 }
00040
00045 function setCommentId($commentId) {
00046 return $this->setData('commentId', $commentId);
00047 }
00048
00053 function getChildCommentCount() {
00054 return $this->getData('childCommentCount');
00055 }
00056
00061 function setChildCommentCount($childCommentCount) {
00062 return $this->setData('childCommentCount', $childCommentCount);
00063 }
00064
00069 function getParentCommentId() {
00070 return $this->getData('parentCommentId');
00071 }
00072
00077 function setParentCommentId($parentCommentId) {
00078 return $this->setData('parentCommentId', $parentCommentId);
00079 }
00080
00085 function getArticleId() {
00086 return $this->getData('articleId');
00087 }
00088
00093 function setArticleId($articleId) {
00094 return $this->setData('articleId', $articleId);
00095 }
00096
00101 function getUser() {
00102 return $this->getData('user');
00103 }
00104
00109 function setUser($user) {
00110 return $this->setData('user', $user);
00111 }
00112
00116 function getPosterName() {
00117 return $this->getData('posterName');
00118 }
00119
00124 function setPosterName($posterName) {
00125 return $this->setData('posterName', $posterName);
00126 }
00127
00131 function getPosterEmail() {
00132 return $this->getData('posterEmail');
00133 }
00134
00139 function setPosterEmail($posterEmail) {
00140 return $this->setData('posterEmail', $posterEmail);
00141 }
00142
00147 function getPosterIP() {
00148 return $this->getData('posterIP');
00149 }
00150
00155 function setPosterIP($posterIP) {
00156 return $this->setData('posterIP', $posterIP);
00157 }
00158
00163 function getTitle() {
00164 return $this->getData('title');
00165 }
00166
00171 function setTitle($title) {
00172 return $this->setData('title', $title);
00173 }
00174
00179 function getBody() {
00180 return $this->getData('body');
00181 }
00182
00187 function setBody($body) {
00188 return $this->setData('body', $body);
00189 }
00190
00195 function getDatePosted() {
00196 return $this->getData('datePosted');
00197 }
00198
00203 function setDatePosted($datePosted) {
00204 return $this->setData('datePosted', $datePosted);
00205 }
00206
00211 function getDateModified() {
00212 return $this->getData('dateModified');
00213 }
00214
00219 function setDateModified($dateModified) {
00220 return $this->setData('dateModified', $dateModified);
00221 }
00222
00227 function &getChildren() {
00228 $children = &$this->getData('children');
00229 return $children;
00230 }
00231
00236 function setChildren(&$children) {
00237 $this->setData('children', $children);
00238 }
00239
00240 }
00241
00242 ?>