mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +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,14 +1,14 @@
|
|||
<?php
|
||||
class CourrierInternationalBridge extends BridgeAbstract{
|
||||
|
||||
public $maintainer = "teromene";
|
||||
public $name = "Courrier International Bridge";
|
||||
public $uri = "http://CourrierInternational.com/";
|
||||
public $description = "Courrier International bridge";
|
||||
const MAINTAINER = "teromene";
|
||||
const NAME = "Courrier International Bridge";
|
||||
const URI = "http://CourrierInternational.com/";
|
||||
const DESCRIPTION = "Courrier International bridge";
|
||||
|
||||
public function collectData(){
|
||||
|
||||
$html = $this->getSimpleHTMLDOM($this->uri)
|
||||
$html = $this->getSimpleHTMLDOM(self::URI)
|
||||
or $this->returnServerError('Error.');
|
||||
|
||||
$element = $html->find("article");
|
||||
|
@ -22,7 +22,7 @@ class CourrierInternationalBridge extends BridgeAbstract{
|
|||
$item['uri'] = $article->parent->getAttribute("href");
|
||||
|
||||
if(strpos($item['uri'], "http") === FALSE) {
|
||||
$item['uri'] = $this->uri.$item['uri'];
|
||||
$item['uri'] = self::URI.$item['uri'];
|
||||
}
|
||||
|
||||
$page = $this->getSimpleHTMLDOM($item['uri']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue