mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-08 09:36:39 +02:00
[HttpCachingBridgeAbstract] Change template to use const definitions
@@ -51,15 +51,13 @@ This is the template for a new bridge:
|
||||
```PHP
|
||||
<?php
|
||||
class MySiteBridge extends HttpCachingBridgeAbstract {
|
||||
public function loadMetadatas(){
|
||||
$this->maintainer = 'No maintainer';
|
||||
$this->name = 'Unnamed bridge';
|
||||
$this->uri = '';
|
||||
$this->description = 'No description provided';
|
||||
$this->parameters = array();
|
||||
}
|
||||
const MAINTAINER = 'No maintainer';
|
||||
const NAME = 'Unnamed bridge';
|
||||
const URI = '';
|
||||
const DESCRIPTION = 'No description provided';
|
||||
const PARAMETERS = array();
|
||||
|
||||
public function collectData(array $params){
|
||||
public function collectData(){
|
||||
// Implement your bridge here!
|
||||
|
||||
// Example for caching a page with automatic removal after 12 hours
|
||||
|
Reference in New Issue
Block a user