. * * Comments & Questions @ joris.veenhuis@aegee.org */ /** * Comments object. */ require_once(FILESYSTEMROOTPATH."include/model/AbstractMySQL.php"); class Comments extends AbstractMySQL { /** id */ private $id; /** uid of the commenter*/ private $commenter_uid; /** id of the proposal the comment is on */ private $proposal_id; /** time in unix format */ private $time; /** content of the comment */ private $text; private $deleted; /* constructor*/ public function __construct($data) { parent::__construct($data); if( is_array($data) ) { $this->id = $data['id']; $this->commenter_uid = $data['commenter_uid']; $this->proposal_id = $data['proposal_id']; $this->time = $data['time']; $this->text = $data['text']; $this->deleted = $data['deleted']; } else { $this->id = ''; $this->commenter_uid = ''; $this->proposal_id = ''; $this->time = ''; $this->text = ''; $this->deleted = ''; } } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getCommenter_uid() { return $this->commenter_uid; } public function setCommenter_uid($commenter_uid) { $this->commenter_uid = $commenter_uid; } public function getProposal_id() { return $this->proposal_id; } public function setProposal_id($proposal_id) { $this->proposal_id = $proposal_id; } public function getTime() { return $this->time; } public function setTime($time) { $this->time = $time; } public function getText() { return $this->text; } public function setText($text) { $this->text = $text; } public function getDeleted() { return $this->deleted; } public function setDeleted($deleted) { $this->deleted = $deleted; } } ?>