The new TMX Info Searcher class released with
XAseco v1.01 is also
available for download separately. This class works a bit differently than my InfoFetcher classes, because searching TMX can return a variable number of results. Therefore I built it as an Iterator class, meaning the object returned by instantiating the class with some search parameters can by looped over in a 'foreach' statement, which automatically causes each track "value" to be delivered as an TMXInfo object itself, allowing for easy use of all the track data.
Lots of fancy words

, so perhaps the easiest way to understand how to use this class is a look at the simple driver script that's included in the download, from which this is excerpted:
Code: Select all
$tmx = new TMXInfoSearcher($game, $name, $author, $env, $recent);
// check for any results
if ($tmx->valid()) {
// display all results
foreach ($tmx as $key => $value) {
echo "key: $key\n";
echo "value: ";
print_r($value);
echo "\n";
}
} else {
echo "not found\n";
}
Hope this is of use to other programmers. And the new ShareMania Info Fetcher class is also
separately available.