1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-09 10:06:33 +02:00

[bridges] use constants instead of variable members

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière
2016-08-30 11:23:55 +02:00
parent 556b8a2452
commit 9a0da733ef
129 changed files with 834 additions and 834 deletions

View File

@@ -1,13 +1,13 @@
<?php
class ZDNetBridge extends BridgeAbstract {
public $maintainer = 'ORelio';
public $name = 'ZDNet Bridge';
public $uri = 'http://www.zdnet.com/';
public $description = 'Technology News, Analysis, Comments and Product Reviews for IT Professionals.';
const MAINTAINER = 'ORelio';
const NAME = 'ZDNet Bridge';
const URI = 'http://www.zdnet.com/';
const DESCRIPTION = 'Technology News, Analysis, Comments and Product Reviews for IT Professionals.';
//http://www.zdnet.com/zdnet.opml
public $parameters = array( array(
const PARAMETERS = array( array(
'feed'=>array(
'name'=>'Feed',
'type'=>'list',
@@ -207,7 +207,7 @@ class ZDNetBridge extends BridgeAbstract {
return $string;
}
$baseUri = $this->uri;
$baseUri = self::URI;
$feed = $this->getInput('feed');
if (strpos($feed, 'downloads!') !== false) {
$feed = str_replace('downloads!', '', $feed);