You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
533 B
20 lines
533 B
|
|
<?php
|
|
try {
|
|
$parser = new RssParser();
|
|
$gatewayNew = new gatewayNews(new Connection($dsn, $user, $pass));
|
|
$gatewaySource = new gatewaySources(new Connection($dsn, $user, $pass));
|
|
|
|
$listeSources = $gatewaySource->getSources();
|
|
foreach ($listeSources as $source) {
|
|
$resultFlux = $parser->getResultFlux($source->getLink());
|
|
foreach ($resultFlux as $n) {
|
|
$gatewayNew->addNews($n);
|
|
}
|
|
}
|
|
}
|
|
catch (Exception $e) {
|
|
|
|
}
|
|
?>
|