From 1f0ead5edc7cc3dcfd1e32ca61be10312d5ae9d4 Mon Sep 17 00:00:00 2001 From: Thunderforge Date: Sat, 4 Apr 2020 19:03:44 -0500 Subject: [PATCH] DATA: Converting Articles data from XML to YAML --- data/press_articles.xml | 222 -------------------------------- data/press_articles.yaml | 180 ++++++++++++++++++++++++++ include/Models/ArticleModel.php | 11 +- include/Objects/Article.php | 18 ++- templates/pages/press.tpl | 4 +- 5 files changed, 200 insertions(+), 235 deletions(-) delete mode 100644 data/press_articles.xml create mode 100644 data/press_articles.yaml diff --git a/data/press_articles.xml b/data/press_articles.xml deleted file mode 100644 index bd8f33a2..00000000 --- a/data/press_articles.xml +++ /dev/null @@ -1,222 +0,0 @@ - - -
- https://levvvel.com/scummvm/ - ScummVM is a Magic Box That Runs Classic Adventures - Levvvel, 18 March 2020 -
-
- https://www.youtube.com/watch?v=BcMIWBfM8z8 - Retro Tea Break: Eugene Sandulenko SCUMMVM Team Leader - Interviewed by Neil Thomas, RetroManCave Youtube Channel, 20 January 2020 -
-
- https://boingboing.net/2019/12/18/a-legendary-point-and-click-ad.html - A legendary point-and-click adventure game has found a new life online - Boing Boing blog, 18 December 2019 -
-
- https://www.vice.com/en_us/article/xwnmjq/dedicated-fans-spent-8-years-making-the-1997-blade-runner-game-run-on-a-modern-pc - Dedicated Fans Spent 8 Years Making the 1997 'Blade Runner' Game Run on a Modern PC - VICE, 17 June 2019 -
-
- https://blog.github.com/2018-06-25-preserving-and-playing-classic-point-and-click-adventure-games-with-scummvm - Preserving and playing classic point-and-click adventure games with ScummVM - Github Blog, 25 June 2018 -
-
- https://www.pcgamer.com/uk/how-scummvm-is-keeping-adventure-games-alive-one-old-game-at-a-time/ - How ScummVM is keeping adventure games alive, one old game at a time - PCGamer, 22 December 2017 -
-
- https://www.youtube.com/watch?v=QihSN7VCrB0 - ScummVM Retrospective - Lessons learnt, from games preserved. - linux.conf.au Youtube Channel, 27 January 2017 (Recorded on January 16) -
-
- http://www.kotaku.co.uk/2014/11/06/crazy-journey-save-grim-fandango - The Crazy Journey to Save Grim Fandango - Kotaku, 6 November 2014 -
-
- http://www.gamer.no/artikler/feature-historien-om-scummvm/163037?key=pFZ7tmY6 - ScummVM har gitt nytt liv til mer enn 200 klassiske eventyrspill - Norwegian - Gamer.no, 31 October 2014 -
-
- http://www.reddit.com/r/gamedev/comments/25q40t/lucasarts_scumm_amaa_from_david_fox_a_lead/chjrbuk - Lucasarts / SCUMM - AMAA from David Fox, a lead designer & programmer on Zak McKracken, Indiana Jones & the last crusade, Maniac Mansion - Reddit r/gamedev AMAA, 17 May 2014 -
-
- http://www.youtube.com/watch?v=WE0Cf1JWsAg - Tim Schafer Plays "Full Throttle" Part 1 (Using ScummVM!) - Double Fine Productions Youtube Channel, 16 May 2014 (Recorded in 2012) -
-
- http://www.youtube.com/watch?v=qumYnE2wYhA - Tim Schafer Plays "Day of the Tentacle" Part 1 (Using ScummVM!) - Double Fine Productions Youtube Channel, 9 May 2014 (Recorded in 2012) -
-
- http://arstechnica.com/gaming/news/2012/01/maniac-tentacle-mindbenders-of-atlantis-how-scummvm-kept-adventure-gaming-alive.ars - Maniac Tentacle Mindbenders: How ScummVM's unpaid coders kept adventure gaming alive - ars technica, January 2012 -
-
- http://www.guardian.co.uk/technology/gamesblog/2009/mar/22/games - Charles Cecil talks Broken Sword Directors Cut and why point and click adventures are back - The Guardian (Games Blog), March 2009 -
-
- http://grumpygamer.com/6868065 - The One Wish - Ron Gilbert's Grumpy Gamer blog, 26th November 2007 -
-
- http://grumpygamer.com/4172170 - SCUMMVMDSMI - Ron Gilbert's Grumpy Gamer blog, 1st August 2005 -
-
- http://www.micromart.co.uk/features/article/default.aspx?id=21746 - Retro-Mart - www.micromart.co.uk, 2004 -
-
- http://web.archive.org/web/20041010095443/http://www.pcplus.co.uk/tutorials/default.asp?pagetypeid=2&articleid=29821&subsectionid=376&subsubsectionid=749 - Back to the Source - PC Plus issue 215, May 2004 -
-
- http://www.mac-emu.net/article.php3?id_article=780 - Dossier ScummVM - French - mac-emu, April 2004 -
-
- http://www.g4tv.com/callforhelparchive/features/44047/Free_File_ScummVM.html - Call for Help show - TechTV, March 19th 2004 -
-
- http://games.slashdot.org/article.pl?sid=04/03/16/1749211 - ScummVM 0.6.0 Released With Freeware Bonus - Slashdot, March 17, 2004 -
-
- http://arisme.free.fr/PocketScumm/press/ - Adventure games on PDAs - French - PDA Magazine issue 9, Mars/April 2004 -
-
- http://www.justadventure.com/articles/PortableGaming/PortableGaming.shtm - Adventure Gaming on the Go - Just Adventure, February 26, 2004 -
-
- http://www.newsforge.com/article.pl?sid=03/10/07/1527227&mode=thread&tid=22 - Bringing old adventure games back to life - NewsForge, October 8, 2003 -
-
- http://www.totalamiga.org/issue16.html - ScummVM review - Total Amiga Magazine 16, October 6, 2003 -
-
- http://www.aventurepc.com/dossiers/scummvm1.html - Dossier ScummVM - première partie - French - Aventure PC, October 1, 2003 -
-
- http://obligement.free.fr/articles/scummvm.php - Labo : ScummVM - French - Obligement, October 2003 -
-
- http://207.44.176.77/~admin28/zodiacgamer/articles/scummvm.htm - Chrilith's ScummVM Zodiac Port WIP - Zodiac Gamer, September 20, 2003 -
-
- http://www.linuxdevcenter.com/pub/a/linux/2003/08/21/scummvm.html - Inside ScummVM: Classic Adventure Engine Overhaul - Oreilly Network, August 21, 2003 -
-
- http://www.aftonbladet.se/vss/spela/story/0,2789,341129,00.html - Spelklassiker - alldeles gratis - Swedish - Aftonbladet, August 6, 2003 -
-
- http://www.pcwelt.de/news/spiele/32970/ - Gratis: Amüsanter Adventure-Klassiker zum Download - German - PC WELT, August 4, 2003 -
-
- http://games.slashdot.org/article.pl?sid=03/08/02/1235259 - ScummVM 0.5.0 Out, With Some Official Game Support - Slashdot, August 2, 2003 -
-
- http://web.archive.org/web/20040619081358/http://www.gamer-nation.co.uk/features/scummvm/index.shtml - A Deafening Silence - Gamer Nation UK, June 30, 2003 -
-
- http://slashdot.org/article.pl?sid=03/04/03/1530224 - Gameboy Advance Clone Superemulator - Slashdot, April 3, 2003 -
-
- http://www.scummbar.com/resources/articles/index.php?newssniffer=readarticle&article=22 - Get those old games working again - Scumm Bar, March 7, 2003 -
-
- http://happypenguin.org/forums/viewtopic.php?t=549 - And the winners are... - Game Tome, Jan 28, 2003 -
-
- /data/news/pczone.jpg - Reference to PocketSCUMM in an iPAQ blurb - PC-Zone issue 123, December 2002 -
-
- http://freshmeat.net/articles/view/543/ - Linux Games, Category Review - Freshmeat.net, August 31, 2002 -
-
- http://slashdot.org/article.pl?sid=02/06/26/1312251 - Lucas Confuses ScummVM With Abandonware - Slashdot, June 26, 2002 -
-
- http://www.amigafuture.de/forum/kb.php?mode=article&k=145 - Interview mit Rüdiger Hanke - German - Amiga Future #36, May 2002 -
-
- http://www.pcdemano.com/sections.php?op=viewarticle&artid=151 - Revisión de PocketScumm Build 0.2.0 - Spanish - PC demano, March 2002 -
-
- http://slashdot.org/article.pl?sid=01/11/03/1429247 - Linux SCUMM Interpreter - Slashdot, November 3, 2001 -
-
diff --git a/data/press_articles.yaml b/data/press_articles.yaml new file mode 100644 index 00000000..4fb2161a --- /dev/null +++ b/data/press_articles.yaml @@ -0,0 +1,180 @@ +# Press articles and other media featuring the project +articles: + - url: "https://levvvel.com/scummvm/" + name: "ScummVM is a Magic Box That Runs Classic Adventures" + source: "Levvvel" + date: "18 March 2020" + - url: "https://www.youtube.com/watch?v=BcMIWBfM8z8" + name: "Retro Tea Break: Eugene Sandulenko SCUMMVM Team Leader" + source: "Interviewed by Neil Thomas, RetroManCave Youtube Channel" + date: "20 January 2020" + - url: "https://boingboing.net/2019/12/18/a-legendary-point-and-click-ad.html" + name: "A legendary point-and-click adventure game has found a new life online" + source: "Boing Boing blog" + date: "18 December 2019" + - url: "https://www.vice.com/en_us/article/xwnmjq/dedicated-fans-spent-8-years-making-the-1997-blade-runner-game-run-on-a-modern-pc" + name: "Dedicated Fans Spent 8 Years Making the 1997 'Blade Runner' Game Run on a Modern PC" + source: "VICE" + date: "17 June 2019" + - url: "https://blog.github.com/2018-06-25-preserving-and-playing-classic-point-and-click-adventure-games-with-scummvm" + name: "Preserving and playing classic point-and-click adventure games with ScummVM" + source: "Github Blog" + date: "25 June 2018" + - url: "https://www.pcgamer.com/uk/how-scummvm-is-keeping-adventure-games-alive-one-old-game-at-a-time/" + name: "How ScummVM is keeping adventure games alive, one old game at a time" + source: "PCGamer" + date: "22 December 2017" + - url: "https://www.youtube.com/watch?v=QihSN7VCrB0" + name: "ScummVM Retrospective - Lessons learnt, from games preserved." + source: "linux.conf.au Youtube Channel" + date: "27 January 2017 (Recorded on January 16)" + - url: "http://www.kotaku.co.uk/2014/11/06/crazy-journey-save-grim-fandango" + name: "The Crazy Journey to Save Grim Fandango" + source: "Kotaku" + date: "6 November 2014" + - url: "http://www.gamer.no/artikler/feature-historien-om-scummvm/163037?key=pFZ7tmY6" + name: "ScummVM har gitt nytt liv til mer enn 200 klassiske eventyrspill" + language: "Norwegian" + source: "Gamer.no" + date: "31 October 2014" + - url: "http://www.reddit.com/r/gamedev/comments/25q40t/lucasarts_scumm_amaa_from_david_fox_a_lead/chjrbuk" + name: "Lucasarts / SCUMM - AMAA from David Fox, a lead designer & programmer on Zak McKracken, Indiana Jones & the last crusade, Maniac Mansion" + source: "Reddit r/gamedev AMAA" + date: "17 May 2014" + - url: "http://www.youtube.com/watch?v=WE0Cf1JWsAg" + name: "Tim Schafer Plays \"Full Throttle\" Part 1 (Using ScummVM!)" + source: "Double Fine Productions Youtube Channel" + date: "16 May 2014 (Recorded in 2012)" + - url: "http://www.youtube.com/watch?v=qumYnE2wYhA" + name: "Tim Schafer Plays \"Day of the Tentacle\" Part 1 (Using ScummVM!)" + source: "Double Fine Productions Youtube Channel" + date: "9 May 2014 (Recorded in 2012)" + - url: "http://arstechnica.com/gaming/news/2012/01/maniac-tentacle-mindbenders-of-atlantis-how-scummvm-kept-adventure-gaming-alive.ars" + name: "Maniac Tentacle Mindbenders: How ScummVM's unpaid coders kept adventure gaming alive" + source: "ars technica" + date: "January 2012" + - url: "http://www.guardian.co.uk/technology/gamesblog/2009/mar/22/games" + name: "Charles Cecil talks Broken Sword Directors Cut and why point and click adventures are back" + source: "The Guardian (Games Blog)" + date: "March 2009" + - url: "http://grumpygamer.com/6868065" + name: "The One Wish" + source: "Ron Gilbert's Grumpy Gamer blog" + date: "26th November 2007" + - url: "http://grumpygamer.com/4172170" + name: "SCUMMVMDSMI" + source: "Ron Gilbert's Grumpy Gamer blog" + date: "1st August 2005" + - url: "http://www.micromart.co.uk/features/article/default.aspx?id=21746" + name: "Retro-Mart" + source: "www.micromart.co.uk" + date: "2004" + - url: "http://web.archive.org/web/20041010095443/http://www.pcplus.co.uk/tutorials/default.asp?pagetypeid=2&articleid=29821&subsectionid=376&subsubsectionid=749" + name: "Back to the Source" + source: "PC Plus issue 215" + date: "May 2004" + - url: "http://www.mac-emu.net/article.php3?id_article=780" + name: "Dossier ScummVM" + language: "French" + source: "mac-emu" + date: "April 2004" + - url: "http://www.g4tv.com/callforhelparchive/features/44047/Free_File_ScummVM.html" + name: "Call for Help show" + source: "TechTV" + date: "19 March 2004" + - url: "http://games.slashdot.org/article.pl?sid=04/03/16/1749211" + name: "ScummVM 0.6.0 Released With Freeware Bonus" + source: "Slashdot" + date: "17 March 2004" + - url: "http://arisme.free.fr/PocketScumm/press/" + name: "Adventure games on PDAs" + language: "French" + source: "PDA Magazine issue 9" + date: "Mars/April 2004" + - url: "http://www.justadventure.com/articles/PortableGaming/PortableGaming.shtm" + name: "Adventure Gaming on the Go" + source: "Just Adventure" + date: "26 February 2004" + - url: "http://www.newsforge.com/article.pl?sid=03/10/07/1527227&mode=thread&tid=22" + name: "Bringing old adventure games back to life" + source: "NewsForge" + date: "8 October 2003" + - url: "http://www.totalamiga.org/issue16.html" + name: "ScummVM review" + source: "Total Amiga Magazine 16" + date: "6 October 2003" + - url: "http://www.aventurepc.com/dossiers/scummvm1.html" + name: "Dossier ScummVM - première partie" + language: "French" + source: "Aventure PC" + date: "1 October 2003" + - url: "http://obligement.free.fr/articles/scummvm.php" + name: "Labo : ScummVM" + language: "French" + source: "Obligement" + date: "October 2003" + - url: "http://207.44.176.77/~admin28/zodiacgamer/articles/scummvm.htm" + name: "Chrilith's ScummVM Zodiac Port WIP" + source: "Zodiac Gamer" + date: "20 September 2003" + - url: "http://www.linuxdevcenter.com/pub/a/linux/2003/08/21/scummvm.html" + name: "Inside ScummVM: Classic Adventure Engine Overhaul" + source: "Oreilly Network" + date: "21 August 2003" + - url: "http://www.aftonbladet.se/vss/spela/story/0,2789,341129,00.html" + name: "Spelklassiker - alldeles gratis" + language: "Swedish" + source: "Aftonbladet" + date: "6 August 2003" + - url: "http://www.pcwelt.de/news/spiele/32970/" + name: "Gratis: Amüsanter Adventure-Klassiker zum Download" + language: "German" + source: "PC WELT" + date: "4 August 2003" + - url: "http://games.slashdot.org/article.pl?sid=03/08/02/1235259" + name: "ScummVM 0.5.0 Out, With Some Official Game Support" + source: "Slashdot" + date: "2 August 2003" + - url: "http://web.archive.org/web/20040619081358/http://www.gamer-nation.co.uk/features/scummvm/index.shtml" + name: "A Deafening Silence" + source: "Gamer Nation UK" + date: "30 June 2003" + - url: "http://slashdot.org/article.pl?sid=03/04/03/1530224" + name: "Gameboy Advance Clone Superemulator" + source: "Slashdot" + date: "3 April 2003" + - url: "http://www.scummbar.com/resources/articles/index.php?newssniffer=readarticle&article=22" + name: "Get those old games working again" + source: "Scumm Bar" + date: "7 March 2003" + - url: "http://happypenguin.org/forums/viewtopic.php?t=549" + name: "And the winners are..." + source: "Game Tome" + date: "28 January 2003" + - url: "/data/news/pczone.jpg" + name: "Reference to PocketSCUMM in an iPAQ blurb" + source: "PC-Zone issue 123" + date: "December 2002" + - url: "http://freshmeat.net/articles/view/543/" + name: "Linux Games, Category Review" + source: "Freshmeat.net" + date: "31 August 2002" + - url: "http://slashdot.org/article.pl?sid=02/06/26/1312251" + name: "Lucas Confuses ScummVM With Abandonware" + source: "Slashdot" + date: "26 June 2002" + - url: "http://www.amigafuture.de/forum/kb.php?mode=article&k=145" + name: "Interview mit Rüdiger Hanke" + language: "German" + source: "Amiga Future #36" + date: "May 2002" + - url: "http://www.pcdemano.com/sections.php?op=viewarticle&artid=151" + name: "Revisión de PocketScumm Build 0.2.0" + language: "Spanish" + source: "PC demano" + date: "March 2002" + - url: "http://slashdot.org/article.pl?sid=01/11/03/1429247" + name: "Linux SCUMM Interpreter" + source: "Slashdot" + date: "3 November 3" + DATE: "2001" diff --git a/include/Models/ArticleModel.php b/include/Models/ArticleModel.php index 22b096e1..2551f646 100644 --- a/include/Models/ArticleModel.php +++ b/include/Models/ArticleModel.php @@ -2,7 +2,6 @@ namespace ScummVM\Models; use ScummVM\Objects\Article; -use ScummVM\XMLParser; /** * The ArticleModel class will generate Article objects. @@ -12,17 +11,17 @@ abstract class ArticleModel extends BasicModel /* Get all articles. */ public static function getAllArticles() { - $fname = DIR_DATA . '/press_articles.xml'; - $parser = new XMLParser(); - $parsedData = $parser->parseByFilename($fname); + $fname = DIR_DATA . '/press_articles.yaml'; + $parsedData = \yaml_parse_file($fname); $entries = array(); - foreach (array_values($parsedData['articles']['article']) as $value) { + foreach (array_values($parsedData['articles']) as $value) { $entries[] = new Article( array( 'name' => $value['name'], 'url' => $value['url'], 'language' => $value['language'], - 'posted' => $value['posted'], + 'source' => $value['source'], + 'date' => $value['date'], ) ); } diff --git a/include/Objects/Article.php b/include/Objects/Article.php index beeec142..534d2eb0 100644 --- a/include/Objects/Article.php +++ b/include/Objects/Article.php @@ -9,7 +9,8 @@ class Article extends BasicObject { private $url; private $language; - private $posted; + private $source; + private $date; /* Article object constructor. */ public function __construct($data) @@ -17,7 +18,8 @@ class Article extends BasicObject parent::__construct($data); $this->url = $data['url']; $this->language = $data['language']; - $this->posted = $data['posted']; + $this->source = $data['source']; + $this->date = $data['date']; } /* Get the URL. */ @@ -32,9 +34,15 @@ class Article extends BasicObject return $this->language; } - /* Get the date it was posted. */ - public function getPosted() + /* Get the source that published it. */ + public function getSource() { - return $this->posted; + return $this->source; + } + + /* Get the date it was posted. */ + public function getDate() + { + return $this->date; } } diff --git a/templates/pages/press.tpl b/templates/pages/press.tpl index 828f4be0..69ea9826 100644 --- a/templates/pages/press.tpl +++ b/templates/pages/press.tpl @@ -6,9 +6,9 @@ {foreach from=$articles item=article}

{if $article->getLanguage() != null} - {$article->getName()} ({$article->getLanguage()}), {$article->getPosted()} + {$article->getName()} ({$article->getLanguage()}), {$article->getSource()}, {$article->getDate()} {else} - {$article->getName()}, {$article->getPosted()} + {$article->getName()}, {$article->getSource()}, {$article->getDate()} {/if}

{/foreach}