Beispiel #1
0
 /**
  * Save listing keyword
  * 
  * @param string $keyword
  * @param int $listing_sid
  * @param bool $active
  */
 public static function saveListingKeyword($keyword, $listing_sid, $active = false)
 {
     if (!empty($keyword) && !SJB_ListingDBManager::isKeywordExistsByListingSID($listing_sid, $keyword)) {
         SJB_DB::query('INSERT INTO `listings_keywords` (`keywords`, `listing_sid`, `active`) VALUES (?s, ?n, ?n)', $keyword, $listing_sid, $active);
     }
 }