DemoBridge.php 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. class DemoBridge extends BridgeAbstract {
  3. const MAINTAINER = 'teromene';
  4. const NAME = 'DemoBridge';
  5. const URI = 'http://github.com/rss-bridge/rss-bridge';
  6. const DESCRIPTION = 'Bridge used for demos';
  7. const PARAMETERS = array(
  8. 'testCheckbox' => array(
  9. 'testCheckbox' => array(
  10. 'type' => 'checkbox',
  11. 'name' => 'test des checkbox'
  12. )
  13. ),
  14. 'testList' => array(
  15. 'testList' => array(
  16. 'type' => 'list',
  17. 'name' => 'test des listes',
  18. 'values' => array(
  19. 'Test' => 'test',
  20. 'Test 2' => 'test2'
  21. )
  22. )
  23. ),
  24. 'testNumber' => array(
  25. 'testNumber' => array(
  26. 'type' => 'number',
  27. 'name' => 'test des numéros',
  28. 'exampleValue' => '1515632'
  29. )
  30. )
  31. );
  32. public function collectData(){
  33. $item = array();
  34. $item['author'] = 'Me!';
  35. $item['title'] = 'Test';
  36. $item['content'] = 'Awesome content !';
  37. $item['id'] = 'Lalala';
  38. $item['uri'] = 'http://example.com/test';
  39. $this->items[] = $item;
  40. }
  41. }