public $source;
public $daysBefore;
public $daysAfter;
+ public $locale;
public function load()
{
$this->source = $source;
$this->daysBefore = $daysBefore;
$this->daysAfter = $daysAfter;
+ if (isset($locale)) {
+ $this->locale = $locale;
+ }
}
public function loadSource()
$class = '\\bdrem\\Source_' . array_shift($settings);
return new $class($settings[0]);
- //$rm = new \ReflectionMethod($class, '__construct');
- //return $rm->invokeArgs(null, $settings);
- //return call_user_func_array($class . '::__construct', $settings);
}
}
?>