diff options
author | Johannes 'josch' Schauer <josch@debian.org> | 2019-09-24 22:51:24 +0200 |
---|---|---|
committer | Johannes 'josch' Schauer <josch@debian.org> | 2019-09-24 22:51:24 +0200 |
commit | 8702184834089fd80a0caedd34297f834e716f52 (patch) | |
tree | 462095b3c147cb2a56ac5f1f42ce3d4e8b6839e2 /bridges/DemoBridge.php |
Import Upstream version 2019-01-13
Diffstat (limited to 'bridges/DemoBridge.php')
-rw-r--r-- | bridges/DemoBridge.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php new file mode 100644 index 0000000..f48b451 --- /dev/null +++ b/bridges/DemoBridge.php @@ -0,0 +1,46 @@ +<?php +class DemoBridge extends BridgeAbstract { + + const MAINTAINER = 'teromene'; + const NAME = 'DemoBridge'; + const URI = 'http://github.com/rss-bridge/rss-bridge'; + const DESCRIPTION = 'Bridge used for demos'; + + const PARAMETERS = array( + 'testCheckbox' => array( + 'testCheckbox' => array( + 'type' => 'checkbox', + 'name' => 'test des checkbox' + ) + ), + 'testList' => array( + 'testList' => array( + 'type' => 'list', + 'name' => 'test des listes', + 'values' => array( + 'Test' => 'test', + 'Test 2' => 'test2' + ) + ) + ), + 'testNumber' => array( + 'testNumber' => array( + 'type' => 'number', + 'name' => 'test des numéros', + 'exampleValue' => '1515632' + ) + ) + ); + + public function collectData(){ + + $item = array(); + $item['author'] = 'Me!'; + $item['title'] = 'Test'; + $item['content'] = 'Awesome content !'; + $item['id'] = 'Lalala'; + $item['uri'] = 'http://example.com/test'; + + $this->items[] = $item; + } +} |