-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ReleasesSwitch] Switch scene releases (#1694)
Separate bridge from Releases3DS that just has a different URL. Inherits from Releases3DS so both bridges need to be present. * [Releases3DS] Fix PHP notices related to IGN
- Loading branch information
Showing
2 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
// This bridge depends on Releases3DSBridge | ||
if (!class_exists('Releases3DSBridge')){ | ||
include('Releases3DSBridge.php'); | ||
} | ||
|
||
class ReleasesSwitchBridge extends Releases3DSBridge { | ||
|
||
const NAME = 'Switch Scene Releases'; | ||
const URI = 'http://www.nswdb.com/'; | ||
const DESCRIPTION = 'Returns the newest scene releases for Nintendo Switch.'; | ||
|
||
public function collectData(){ | ||
$this->collectDataUrl(self::URI . 'xml.php'); | ||
} | ||
} |