function callClass($file, $class_name, $method) { if (file_exists($file)) { require_once $file; if (method_exists($class_name, $method)) { self::$log[] = $class_name . '::' . $method; call_user_func_array(array($class_name, $method), self::$params); } } self::$params = array(); }