Method hooking in PHP.