Rss-Bridge/lib/RssBridge.php
logmanoriginal f564925ba0 [RssBridge] Use require_once instead of require
"The require_once statement is identical to require except PHP will
check if the file has already been included, and if so, not include
(require) it again."

-- http://php.net/manual/en/function.require-once.php
2018-11-06 18:15:10 +01:00

51 lines
1.4 KiB
PHP

<?php
/* rss-bridge library.
Foundation functions for rss-bridge project.
See https://github.com/sebsauvage/rss-bridge
Licence: Public domain.
*/
define('PATH_VENDOR', __DIR__ . '/../vendor');
require_once __DIR__ . '/Exceptions.php';
require_once __DIR__ . '/Format.php';
require_once __DIR__ . '/FormatAbstract.php';
require_once __DIR__ . '/Bridge.php';
require_once __DIR__ . '/BridgeAbstract.php';
require_once __DIR__ . '/FeedExpander.php';
require_once __DIR__ . '/Cache.php';
require_once __DIR__ . '/Authentication.php';
require_once __DIR__ . '/Configuration.php';
require_once __DIR__ . '/BridgeCard.php';
require_once __DIR__ . '/BridgeList.php';
require_once __DIR__ . '/ParameterValidator.php';
require_once __DIR__ . '/html.php';
require_once __DIR__ . '/error.php';
require_once __DIR__ . '/contents.php';
require_once PATH_VENDOR . '/simplehtmldom/simple_html_dom.php';
require_once PATH_VENDOR . '/php-urljoin/src/urljoin.php';
/* Example use
require_once __DIR__ . '/lib/RssBridge.php';
// Data retrieval
Bridge::setDir(__DIR__ . '/bridges/');
$bridge = Bridge::create('GoogleSearch');
$bridge->collectData($_REQUEST);
// Data transformation
Format::setDir(__DIR__ . '/formats/');
$format = Format::create('Atom');
$format
->setItems($bridge->getItems())
->setExtraInfos(array(
'name' => $bridge->getName(),
'uri' => $bridge->getURI(),
'icon' => $bridge->getIcon(),
))
->display();
*/