2015-11-03 17:36:19 +03:00
|
|
|
<?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";
|
|
|
|
|
2016-08-22 02:25:56 +03:00
|
|
|
$this->parameters['testCheckbox'] = array(
|
|
|
|
'testCheckbox'=>array(
|
|
|
|
'type'=>'checkbox',
|
|
|
|
'name'=>'test des checkbox'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->parameters['testList'] = array(
|
|
|
|
'testList'=>array(
|
|
|
|
'type'=>'list',
|
|
|
|
'name'=>'test des listes',
|
|
|
|
'values'=>array(
|
|
|
|
'Test'=>'test',
|
|
|
|
'Test 2'=>'test2'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->parameters['testNumber'] = array(
|
|
|
|
'testNumber'=>array(
|
|
|
|
'type'=>'number',
|
|
|
|
'name'=>'test des numéros',
|
|
|
|
'exampleValue'=>'1515632'
|
|
|
|
)
|
|
|
|
);
|
2015-11-03 17:36:19 +03:00
|
|
|
}
|
|
|
|
|
2016-08-25 02:24:53 +03:00
|
|
|
public function collectData(){
|
2015-11-03 17:36:19 +03:00
|
|
|
|
2016-08-22 19:55:59 +03:00
|
|
|
$item = array();
|
|
|
|
$item['author'] = "Me!";
|
|
|
|
$item['title'] = "Test";
|
|
|
|
$item['content'] = "Awesome content !";
|
|
|
|
$item['id'] = "Lalala";
|
|
|
|
$item['uri'] = "http://test.test/test";
|
2016-01-19 15:34:38 +03:00
|
|
|
|
|
|
|
$this->items[] = $item;
|
|
|
|
|
2015-11-03 17:36:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getCacheDuration(){
|
2016-01-19 15:34:38 +03:00
|
|
|
return 00; // 1 hour
|
2015-11-03 17:36:19 +03:00
|
|
|
}
|
|
|
|
}
|