mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-30 06:40:02 +02:00
[HttpCachingBridgeAbstract] Change template to use const definitions
parent
ebc137fc9f
commit
755825e00a
1 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue