public function getBadWordNum()
 {
     $query = "SELECT * FROM " . BADWORD;
     $dbHelper = new DBHelper();
     $badword_num = $dbHelper->getNumOfRows($query);
     return $badword_num;
 }
Beispiel #2
0
 public function hasRatingByEntityDislikeUser($entity_id, $dislike_user_id)
 {
     $query = "SELECT * FROM " . RATING . " WHERE rat_entity_id = '" . $entity_id . "' AND rat_dislike_user_id = '" . $dislike_user_id . "'";
     $dbHelper = new DBHelper();
     $has_ratings = $dbHelper->getNumOfRows($query);
     //echo "RatingDataAccessor->has_ratings".$has_ratings;
     return $has_ratings;
 }