mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 17:44:48 +02:00
[bridges] use constants instead of variable members
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
556b8a2452
commit
9a0da733ef
129 changed files with 834 additions and 834 deletions
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
class FierPandaBridge extends BridgeAbstract {
|
||||
|
||||
public $maintainer = "snroki";
|
||||
public $name = "Fier Panda Bridge";
|
||||
public $uri = "http://www.fier-panda.fr/";
|
||||
public $description = "Returns latest articles from Fier Panda.";
|
||||
const MAINTAINER = "snroki";
|
||||
const NAME = "Fier Panda Bridge";
|
||||
const URI = "http://www.fier-panda.fr/";
|
||||
const DESCRIPTION = "Returns latest articles from Fier Panda.";
|
||||
|
||||
public function collectData(){
|
||||
$html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError('Could not request Fier Panda.');
|
||||
$html = $this->getSimpleHTMLDOM(self::URI) or $this->returnServerError('Could not request Fier Panda.');
|
||||
|
||||
foreach($html->find('div.container-content article') as $element) {
|
||||
$item = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue