classes/comment/Comment.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00020 //$Id$
00021 
00022 class Comment extends DataObject {
00023 
00027    function Comment() {
00028       parent::DataObject();
00029       $this->setPosterIP(Request::getRemoteAddr());
00030    }
00031 
00036    function getCommentId() {
00037       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00038       return $this->getId();
00039    }
00040 
00045    function setCommentId($commentId) {
00046       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00047       return $this->setId($commentId);
00048    }
00049 
00054    function getChildCommentCount() {
00055       return $this->getData('childCommentCount');
00056    }
00057 
00062    function setChildCommentCount($childCommentCount) {
00063       return $this->setData('childCommentCount', $childCommentCount);
00064    }
00065 
00070    function getParentCommentId() {
00071       return $this->getData('parentCommentId');
00072    }
00073 
00078    function setParentCommentId($parentCommentId) {
00079       return $this->setData('parentCommentId', $parentCommentId);
00080    }
00081 
00086    function getPaperId() {
00087       return $this->getData('paperId');
00088    }
00089 
00094    function setPaperId($paperId) {
00095       return $this->setData('paperId', $paperId);
00096    }
00097 
00102    function getUser() {
00103       return $this->getData('user');
00104    }
00105 
00110    function setUser($user) {
00111       return $this->setData('user', $user);
00112    }
00113 
00117    function getPosterName() {
00118       return $this->getData('posterName');
00119    }
00120 
00125    function setPosterName($posterName) {
00126       return $this->setData('posterName', $posterName);
00127    }
00128 
00132    function getPosterEmail() {
00133       return $this->getData('posterEmail');
00134    }
00135 
00140    function setPosterEmail($posterEmail) {
00141       return $this->setData('posterEmail', $posterEmail);
00142    }
00143 
00148    function getPosterIP() {
00149       return $this->getData('posterIP');
00150    }
00151 
00156    function setPosterIP($posterIP) {
00157       return $this->setData('posterIP', $posterIP);
00158    }
00159 
00164    function getTitle() {
00165       return $this->getData('title');
00166    }
00167 
00172    function setTitle($title) {
00173       return $this->setData('title', $title);
00174    }
00175 
00180    function getBody() {
00181       return $this->getData('body');
00182    }
00183 
00188    function setBody($body) {
00189       return $this->setData('body', $body);
00190    }
00191 
00196    function getDatePosted() {
00197       return $this->getData('datePosted');
00198    }
00199 
00204    function setDatePosted($datePosted) {
00205       return $this->setData('datePosted', $datePosted);
00206    }
00207 
00212    function getDateModified() {
00213       return $this->getData('dateModified');
00214    }
00215 
00220    function setDateModified($dateModified) {
00221       return $this->setData('dateModified', $dateModified);
00222    }
00223 
00228    function &getChildren() {
00229       $children =& $this->getData('children');
00230       return $children;
00231    }
00232 
00237    function setChildren(&$children) {
00238       $this->setData('children', $children);
00239    }
00240 
00241  }
00242 
00243 ?>

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