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