mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-09-01 08:15:57 +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
|
||||||
<?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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue