static function Recommender::purgeApp in Recommender API 6.2
1 call to Recommender::purgeApp()
- recommender_purge_app in ./recommender.module
- Remove the application. Usually used in calling module's hook_uninstall()
File
- ./Recommender.php, line 374
Class
- Recommender
- The super class for all other Recommender algorithms.
Code
static function purgeApp($appName) {
$app_id = self::convertAppId($appName);
db_query("DELETE FROM {recommender_similarity} WHERE app_id=%d", $app_id);
db_query("DELETE FROM {recommender_prediction} WHERE app_id=%d", $app_id);
db_query("DELETE FROM {recommender_slopeone_dev} WHERE app_id=%d", $app_id);
db_query("DELETE FROM {recommender_app_map} WHERE app_id=%d", $app_id);
}