9283736c91
official ryzom servers. I removed non open source content though. So this version is running on live servers and works! --HG-- branch : gsoc2012-achievements
23 lines
No EOL
480 B
PHP
23 lines
No EOL
480 B
PHP
<?php
|
|
/*
|
|
* This class is the wrapper for all loaded datasources. It will store them and pass the "drive" command on to them.
|
|
*/
|
|
class DataSourceHandler {
|
|
private $source;
|
|
|
|
function DataSourceHandler() {
|
|
$this->source = array();
|
|
}
|
|
|
|
function addSource($src) {
|
|
$this->source[] = $src;
|
|
}
|
|
|
|
function drive($cdata) { // tell the datasources to start reading data
|
|
foreach($this->source as $elem) {
|
|
$elem->drive($cdata);
|
|
}
|
|
}
|
|
|
|
}
|
|
?>
|