mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-12 15:04:38 +02:00
lib: Add API documentation
This commit is contained in:
parent
b29ba5b973
commit
c4550be812
15 changed files with 1212 additions and 91 deletions
|
@ -1,4 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of RSS-Bridge, a PHP project capable of generating RSS and
|
||||
* Atom feeds for websites that don't have one.
|
||||
*
|
||||
* For the full license information, please view the UNLICENSE file distributed
|
||||
* with this source code.
|
||||
*
|
||||
* @package Core
|
||||
* @license http://unlicense.org/ UNLICENSE
|
||||
* @link https://github.com/rss-bridge/rss-bridge
|
||||
*/
|
||||
|
||||
/**
|
||||
* The bridge interface
|
||||
*
|
||||
* A bridge is a class that is responsible for collecting and transforming data
|
||||
* from one hosting provider into an internal representation of feed data, that
|
||||
* can later be transformed into different feed formats (see {@see FormatInterface}).
|
||||
*
|
||||
* For this purpose, all bridges need to perform three common operations:
|
||||
*
|
||||
* 1. Collect data from a remote site.
|
||||
* 2. Extract the required contents.
|
||||
* 3. Add the contents to the internal data structure.
|
||||
*
|
||||
* Bridges can optionally specify parameters to customize bridge behavior based
|
||||
* on user input. For example, a user could specify how many items to return in
|
||||
* the feed and where to get them.
|
||||
*
|
||||
* In order to present a bridge on the home page, and for the purpose of bridge
|
||||
* specific behaviour, additional information must be provided by the bridge:
|
||||
*
|
||||
* * **Name**
|
||||
* The name of the bridge that can be displayed to users.
|
||||
*
|
||||
* * **Description**
|
||||
* A brief description for the bridge that can be displayed to users.
|
||||
*
|
||||
* * **URI**
|
||||
* A link to the hosting provider.
|
||||
*
|
||||
* * **Maintainer**
|
||||
* The GitHub username of the bridge maintainer
|
||||
*
|
||||
* * **Parameters**
|
||||
* A list of parameters for customization
|
||||
*
|
||||
* * **Icon**
|
||||
* A link to the favicon of the hosting provider
|
||||
*
|
||||
* * **Cache timeout**
|
||||
* The default cache timeout for the bridge.
|
||||
*/
|
||||
interface BridgeInterface {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue