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.

22 lines
565 B

<?php
include("news.php");
include ('RssParser.php');
include("gatewayNews.php");
include("gatewaySources.php");
include ("config.php");
$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);
}
}
?>