You are here

function recommender_updated_add in Recommender API 5

Same name and namespace in other branches
  1. 6 recommender.module \recommender_updated_add()

File

./recommender.module, line 538
Providing generic recommender system algorithms.

Code

function recommender_updated_add($app_name, $mouse_id, $cheese_id, $old_value, $new_value) {
  $app_id = recommender_get_app_id($app_name);
  $created = time();
  if ($old_value == NULL) {
    $old_value = 'NULL';
  }
  if ($new_value == NULL) {
    $new_value = 'NULL';
  }
  db_query("INSERT INTO {recommender_updated_queue}(app_id, mouse_id, cheese_id, old, new, created)\n            VALUE(%d, %d, %d, %s, %s, %d)", $app_id, $mouse_id, $cheese_id, $old_value, $new_value, $created);
}