2015-11-03 15:36:19 +01:00
|
|
|
<?php
|
|
|
|
class DemoBridge extends BridgeAbstract{
|
|
|
|
|
2016-08-30 11:23:55 +02:00
|
|
|
const MAINTAINER = "teromene";
|
|
|
|
const NAME = "DemoBridge";
|
|
|
|
const URI = "http://github.com/rss-bridge/rss-bridge";
|
|
|
|
const DESCRIPTION = "Bridge used for demos";
|
2016-08-27 21:03:26 +02:00
|
|
|
|
2016-08-30 11:23:55 +02:00
|
|
|
const PARAMETERS = array(
|
2016-08-27 21:03:26 +02:00
|
|
|
'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
|
|
|
}
|
|
|
|
}
|