public static function newFromDb($id) { if (self::$tourCache[$id]) { return self::$tourCache[$id]; } $db = new DbDatabase(); $row = $db->getTournament($id); $result = self::newFromRow($row); self::$tourCache[$id] = $result; return $result; }