Eliminate the global $_SERVER variable in class