Beispiel #1
0
 public static function OnUserDelete($user_id)
 {
     global $DB, $CACHE_MANAGER;
     $user_id = intval($user_id);
     if ($DB->Query("DELETE FROM b_user_option WHERE USER_ID=" . $user_id, false, "File: " . __FILE__ . "<br>Line: " . __LINE__)) {
         $CACHE_MANAGER->cleanDir("user_option");
         self::$cache = array();
         return true;
     }
     return false;
 }