/** * This function sends edited comment for updating to database */ public function edit($oldTimestamp) { $commentDAO = new CommentDAO(); $commentDAO->editCommentInDB($this, $oldTimestamp); }
/** * This method returns one comment * @param $pageID * @param $offset * @return mixed */ public function getOneComment($pageID, $offset) { $commentDAO = new CommentDAO(); return $commentDAO->getOneCommentByLimitIndexInDB($pageID, $offset); }