1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-08 01:26:31 +02:00

[HttpCachingBridgeAbstract] Change template to use const definitions

LogMANOriginal
2016-09-09 19:17:15 +02:00
parent ebc137fc9f
commit 755825e00a

@@ -50,16 +50,14 @@ 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();
}
class MySiteBridge extends HttpCachingBridgeAbstract {
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