2015-11-03 17:36:19 +03:00
|
|
|
<?php
|
|
|
|
class DemoBridge extends BridgeAbstract{
|
|
|
|
|
2016-08-30 12:23:55 +03: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 22:03:26 +03:00
|
|
|
|
2016-08-30 12:23:55 +03:00
|
|
|
const PARAMETERS = array(
|
2016-08-27 22:03:26 +03:00
|
|
|
'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
|
|
|
}
|
|
|
|
}
|