static function set($db) { $variablesRs = $db->queryForVariables(); $variablesRs->data_seek(0); $firstRow = $variablesRs->fetch_assoc(); CommonVariables::$currentTimePeriod = $firstRow['Week']; CommonVariables::$scorecardEnabled = $firstRow['ScorecardEnabled']; CommonVariables::$news1 = $firstRow['News1']; CommonVariables::$news2 = $firstRow['News2']; CommonVariables::$news3 = $firstRow['News3']; }