khanat-opennel-code/code/web/public_php/api/server/scripts/achievement_script/class/DataSourceHandler_class.php
Laszlo Kis-Adam 0876456a22 Merged in dfighter1985/ryzomcore/dfighter-tools (pull request #93)
Further GUI Editor improvements
2014-10-13 20:17:57 +02: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);
}
}
}
?>