mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 20:12:11 +03:00
bba216073c
That's the source code manager job to keep this information consistent Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
69 lines
1.2 KiB
PHP
69 lines
1.2 KiB
PHP
<?php
|
|
class DemoBridge extends BridgeAbstract{
|
|
|
|
public function loadMetadatas() {
|
|
|
|
$this->maintainer = "teromene";
|
|
$this->name = "DemoBridge";
|
|
$this->uri = "http://github.com/sebsauvage/rss-bridge";
|
|
$this->description = "Bridge used for demos";
|
|
|
|
$this->parameters['testCheckbox'] =
|
|
'[
|
|
{
|
|
"type" : "checkbox",
|
|
"identifier" : "testCheckbox",
|
|
"name" : "test des checkbox"
|
|
}
|
|
|
|
]';
|
|
|
|
$this->parameters['testList'] =
|
|
'[
|
|
{
|
|
"type" : "list",
|
|
"identifier" : "testList",
|
|
"name" : "test des listes",
|
|
"values" : [
|
|
{
|
|
"name" : "Test",
|
|
"value" : "test"
|
|
},
|
|
{
|
|
"name" : "Test 2",
|
|
"value" : "test2"
|
|
}
|
|
]
|
|
}
|
|
]';
|
|
$this->parameters['testNumber'] =
|
|
'[
|
|
{
|
|
"type" : "number",
|
|
"identifier" : "testNumber",
|
|
"name" : "test des numéros",
|
|
"exampleValue" : "1515632"
|
|
|
|
}
|
|
|
|
]';
|
|
|
|
}
|
|
|
|
public function collectData(array $param){
|
|
|
|
$item = new \Item();
|
|
$item->author = "Me!";
|
|
$item->title = "Test";
|
|
$item->content = "Awesome content !";
|
|
$item->id = "Lalala";
|
|
$item->uri = "http://test.test/test";
|
|
|
|
$this->items[] = $item;
|
|
|
|
}
|
|
|
|
public function getCacheDuration(){
|
|
return 00; // 1 hour
|
|
}
|
|
}
|