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