2015-11-03 15:36:19 +01:00
|
|
|
<?php
|
|
|
|
class DemoBridge extends BridgeAbstract{
|
|
|
|
|
2016-08-27 21:03:26 +02:00
|
|
|
public $maintainer = "teromene";
|
|
|
|
public $name = "DemoBridge";
|
2016-08-28 13:58:43 +02:00
|
|
|
public $uri = "http://github.com/rss-bridge/rss-bridge";
|
2016-08-27 21:03:26 +02:00
|
|
|
public $description = "Bridge used for demos";
|
|
|
|
|
|
|
|
public $parameters = array(
|
|
|
|
'testCheckbox' => array(
|
|
|
|
'testCheckbox'=>array(
|
|
|
|
'type'=>'checkbox',
|
|
|
|
'name'=>'test des checkbox'
|
2016-08-22 01:25:56 +02:00
|
|
|
)
|
2016-08-27 21:03:26 +02:00
|
|
|
),
|
|
|
|
|
|
|
|
'testList' => array(
|
|
|
|
'testList'=>array(
|
|
|
|
'type'=>'list',
|
|
|
|
'name'=>'test des listes',
|
|
|
|
'values'=>array(
|
|
|
|
'Test'=>'test',
|
|
|
|
'Test 2'=>'test2'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
2016-08-22 01:25:56 +02:00
|
|
|
|
2016-08-27 21:03:26 +02:00
|
|
|
'testNumber' => array(
|
|
|
|
'testNumber'=>array(
|
|
|
|
'type'=>'number',
|
|
|
|
'name'=>'test des numéros',
|
|
|
|
'exampleValue'=>'1515632'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
2015-11-03 15:36:19 +01:00
|
|
|
|
2016-08-27 21:03:26 +02:00
|
|
|
public function collectData(){
|
2015-11-03 15:36:19 +01:00
|
|
|
|
2016-08-27 21:03:26 +02:00
|
|
|
$item = array();
|
|
|
|
$item['author'] = "Me!";
|
|
|
|
$item['title'] = "Test";
|
|
|
|
$item['content'] = "Awesome content !";
|
|
|
|
$item['id'] = "Lalala";
|
2016-08-28 13:58:43 +02:00
|
|
|
$item['uri'] = "http://example.com/test";
|
2016-01-19 13:34:38 +01:00
|
|
|
|
2016-08-27 21:03:26 +02:00
|
|
|
$this->items[] = $item;
|
2016-01-19 13:34:38 +01:00
|
|
|
|
2015-11-03 15:36:19 +01:00
|
|
|
}
|
|
|
|
|
2016-08-27 21:03:26 +02:00
|
|
|
public function getCacheDuration(){
|
|
|
|
return 00; // 1 hour
|
|
|
|
}
|
2015-11-03 15:36:19 +01:00
|
|
|
}
|