diff options
Diffstat (limited to 'docs/05_Bridge_API')
-rw-r--r-- | docs/05_Bridge_API/01_How_to_create_a_new_bridge.md | 3 | ||||
-rw-r--r-- | docs/05_Bridge_API/02_BridgeAbstract.md | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md b/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md index 391d179f..02287962 100644 --- a/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md +++ b/docs/05_Bridge_API/01_How_to_create_a_new_bridge.md @@ -27,4 +27,5 @@ The file must start with the PHP tags and end with an empty line. The closing ta // This line is empty (just imagine it!) ``` -The next step is to extend one of the base classes. Refer to one of an base classes listed on the [Bridge API](../05_Bridge_API/index.md) page.
\ No newline at end of file +The next step is to extend one of the base classes. +Refer to one of an base classes listed on the [Bridge API](../05_Bridge_API/index.md) page. diff --git a/docs/05_Bridge_API/02_BridgeAbstract.md b/docs/05_Bridge_API/02_BridgeAbstract.md index b6813a16..9cb16050 100644 --- a/docs/05_Bridge_API/02_BridgeAbstract.md +++ b/docs/05_Bridge_API/02_BridgeAbstract.md @@ -50,10 +50,10 @@ For example: `MyBridge.php` => `MyBridge` ```PHP <?PHP -class MyBridge extends BridgeAbstract { +class MyBridge extends BridgeAbstract +{ } -// This line is empty (just imagine it!) ``` </div></details> @@ -76,7 +76,8 @@ const CACHE_TIMEOUT // (optional) Defines the maximum duration for the cache in ```PHP <?php -class MyBridge extends BridgeAbstract { +class MyBridge extends BridgeAbstract +{ const NAME = 'My Bridge'; const URI = 'https://rss-bridge.github.io/rss-bridge/Bridge_API/BridgeAbstract.html'; const DESCRIPTION = 'Returns "Hello World!"'; |