public static function addParty(SR_Party $party) { $pid = $party->getID(); if (!isset(self::$parties[$pid])) { $party->setTimestamp(self::getTime()); self::$parties[$pid] = $party; } }