mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
25 lines
609 B
PHP
25 lines
609 B
PHP
<?php
|
|
namespace ScummVM\Models;
|
|
|
|
use ScummVM\Objects\CSection;
|
|
use ScummVM\XMLParser;
|
|
|
|
/**
|
|
* The CreditsModel will generate CSection objects.
|
|
*/
|
|
abstract class CreditsModel extends BasicModel
|
|
{
|
|
/* Get all credit sections and their contents. */
|
|
public static function getAllCredits()
|
|
{
|
|
$fname = DIR_DATA . '/credits.xml';
|
|
$parser = new XMLParser();
|
|
$a = $parser->parseByFilename($fname);
|
|
$sections = array();
|
|
foreach ($a['credits']['section'] as $key => $value) {
|
|
$sections[] = new CSection($value);
|
|
}
|
|
return $sections;
|
|
}
|
|
}
|