public static function __callStatic($name, $arguments) { $method = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name)); return call_user_func_array(array(self, $method), $arguments); }