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