Exemple #1
0
 public static function deleteCommentsToListing($listing_sid)
 {
     $comments = SJB_CommentDBManager::getCommentsToListing($listing_sid);
     foreach ($comments as $comment) {
         SJB_CommentDBManager::deleteComment($comment);
     }
 }
Exemple #2
0
 public static function getCommentsToListing($listing_sid)
 {
     $comments_raw = SJB_CommentDBManager::getCommentsToListing($listing_sid);
     return SJB_CommentManager::getCommentsInfo($comments_raw);
 }