feature/article #14
Closed
roxane.rossetto
wants to merge 0 commits from feature/article
into pre-master
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'feature/article'
Deleting a branch is permanent. It CANNOT be undone. Continue?
The parser has been remade. There was a problem with the format of the data which goes in array into parser.
Now there are function in the gateway to add one article in database (addArticle(Article)) and one to remove all Article. This last one is used especially for the parser. I call it when I use the parser to display only the new articles.
In the model, we have the function getArticles() which return an array of articles. It creates an articleGateway to use getAllArticles.
And then, in the parser there are 3 functions which manage several stream (parseAll(fluxes)) and one stream which parse several articles (parseArticles(flux)). And finally addAllArticles() is the function which parse all articles of all stream in database.
This function has been tested