bridges: Remove unnecessary functions getName() and getURI()

This commit is contained in:
logmanoriginal 2016-08-09 20:01:21 +02:00
parent 9f3e7e1da7
commit 63bb7ef24d
104 changed files with 107 additions and 854 deletions

View file

@ -3,10 +3,10 @@ class MsnMondeBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "kranack";
$this->name = "MSN Actu Monde";
$this->uri = "http://www.msn.com/fr-fr/actualite/monde";
$this->name = 'MSN Actu Monde';
$this->uri = 'http://www.msn.com/fr-fr/actualite/monde';
$this->description = "Returns the 10 newest posts from MSN Actualités (full text)";
$this->update = "2016-08-06";
$this->update = "2016-08-09";
}
private function MsnMondeExtractContent($url, &$item) {
@ -16,7 +16,7 @@ class MsnMondeBridge extends BridgeAbstract{
}
public function collectData(array $param){
$html = $this->file_get_html($this->getURI()) or $this->returnError('Could not request MsnMonde.', 404);
$html = $this->file_get_html($this->uri) or $this->returnError('Could not request MsnMonde.', 404);
$limit = 0;
foreach($html->find('.smalla') as $article) {
if($limit < 10) {
@ -29,12 +29,4 @@ class MsnMondeBridge extends BridgeAbstract{
}
}
}
public function getName(){
return 'MSN Actu Monde';
}
public function getURI(){
return 'http://www.msn.com/fr-fr/actualite/monde';
}
}