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
@@ -50,16 +50,14 @@ This is the template for a new bridge:
|
|||||||
|
|
||||||
```PHP
|
```PHP
|
||||||
<?php
|
<?php
|
||||||
class MySiteBridge extends HttpCachingBridgeAbstract{
|
class MySiteBridge extends HttpCachingBridgeAbstract {
|
||||||
public function loadMetadatas(){
|
const MAINTAINER = 'No maintainer';
|
||||||
$this->maintainer = 'No maintainer';
|
const NAME = 'Unnamed bridge';
|
||||||
$this->name = 'Unnamed bridge';
|
const URI = '';
|
||||||
$this->uri = '';
|
const DESCRIPTION = 'No description provided';
|
||||||
$this->description = 'No description provided';
|
const PARAMETERS = array();
|
||||||
$this->parameters = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function collectData(array $params){
|
public function collectData(){
|
||||||
// Implement your bridge here!
|
// Implement your bridge here!
|
||||||
|
|
||||||
// Example for caching a page with automatic removal after 12 hours
|
// Example for caching a page with automatic removal after 12 hours
|
||||||
|
Reference in New Issue
Block a user