Exemplo n.º 1
0
 public function saveCommentsDetail($GET, $userSeq)
 {
     $commentDetail = new CommentDetails();
     $commentDetail->setCommentSeq($GET['commentMasterSeq']);
     $commentDetail->setCommentsUser($userSeq);
     $commentDetail->setIsPrivate($GET['isPrivate']);
     $commentDetail->setComments($GET['newComments']);
     $CDS = CommentsDataStore::getInstance();
     $CDS->SaveCommentDetail($commentDetail);
     return array("RESPONSE" => "SUCCESS");
 }
Exemplo n.º 2
0
 public static function populateDetailObject($row)
 {
     $commentDetail = new CommentDetails();
     $commentDetail->setSeq($row['seq']);
     $commentDetail->setCommentSeq($row['commentseq']);
     $commentDetail->setDated($row['dated']);
     $commentDetail->setComments($row['comments']);
     $userName = $row['username'];
     if ($userName == null) {
         $userName = "******";
     }
     $commentDetail->setCommentsUser($userName);
     $commentDetail->setIsPrivate($row['isprivate']);
     return $commentDetail;
 }