- Fix paramter mismatch in derived method in class for user table (UserClass).
- use preg_replace_callback to omit deprecated function.