init_conn( "", "", "", "" ); if (!$retval) return null; } return $instance; } } class BoincUser { static function lookup_auth($auth) { $db = BoincDb::get(); return $db->lookup('user', 'BoincUser', "authenticator='$auth'"); } static function lookup_id($id) { $db = BoincDb::get(); return $db->lookup_id($id, 'user', 'BoincUser'); } static function count($clause) { $db = BoincDb::get(); return $db->count('user', $clause); } function update($clause) { $db = BoincDb::get(); return $db->update($this, 'user', $clause); } static function enum($clause) { $db = BoincDb::get(); return $db->enum('user', 'BoincUser', $clause); } } class BoincTeam { static function lookup_id($id) { $db = BoincDb::get(); return $db->lookup_id($id, 'team', 'BoincTeam'); } function update($clause) { $db = BoincDb::get(); return $db->update($this, 'team', $clause); } static function enum($clause) { $db = BoincDb::get(); return $db->enum('team', 'BoincTeam', $clause); } } class BoincTeamDelta { static function enum($clause) { $db = BoincDb::get(); return $db->enum('team_delta', 'BoincTeamDelta', $clause); } } ?>