khanat-opennel-code/code/web/app/app_achievements/_AchWebParser/class/DataSourceHandler_class.php
SirCotare 9283736c91 #1470 This is a huge update. It contains all changes we made to the system on the
official ryzom servers. I removed non open source content though. So this version
is running on live servers and works!

--HG--
branch : gsoc2012-achievements
2012-12-10 15:07:13 +01:00

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);
}
}
}
?>