From 5fb591a285233ab69e2d79ce1df8a35101c064a9 Mon Sep 17 00:00:00 2001 From: LogMANOriginal Date: Wed, 15 Feb 2017 19:49:30 +0100 Subject: [PATCH] [BridgeAbstract] Add 'getDescription' function --- BridgeAbstract.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/BridgeAbstract.md b/BridgeAbstract.md index 037bcde..98ddd8d 100644 --- a/BridgeAbstract.md +++ b/BridgeAbstract.md @@ -3,6 +3,7 @@ To create a new Bridge extending `BridgeAbstract` you must specify some [basic metadata](#basic-metadata) implement following functions: - [`collectData`](#the-collectdata-function) (**required**) +- [`getDescription`](#the-getdescription-function) - [`getName`](#the-getname-function) - [`getURI`](#the-geturi-function) @@ -169,6 +170,18 @@ Parameter | ATOM | HTML | (M)RSS `content`|X|X|X `enclosures`|X|X|X +## The `getDescription` function + +This function returns the description of a bridge. + +**Notice:** **RSS-Bridge** will by default return `const DESCRIPTION` which is defined in the bridge, so you only have to implement this function if you require different behavior! + +```PHP + public function getDescription(){ + return self::DESCRIPTION; + } +``` + ## The `getName` function This function returns the name of the bridge as it will be displayed on the main page of **RSS-Bridge** or on top of the feed output (HTML, ATOM, etc...).