This should result in a lot of simplifications in the bridges
since data validation is now done upstream.
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
- Remove unnecessary documentation
- Update/Clarify documentation where necessary
- Remove empty lines
- Put 'else' between closing and opening curly braces
- Make sure curly braces start right after closing brace on functions '(){...'
- Start lines with '.' and use proper indentation when using multi-line string combinations
- Add spaces for function definitions/calls and assignments
- Add space before opening curly brace after class definition 'class xyz {'
The array structure is as follow:
$parameterSet=array(
'identifier'=>array(
'property'=>'property_value'
…
)
);
'values' property is stored as an associative array where
the key is the displayed string and the value is the value (sic)
attached to this string.
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
We need to have one method to get the data, potentially
using the proxy if defined, and one method to get the Simple
DOM HTML object from these data, with a more informative name
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
therefore, the provider decides if the service use a
proxy or not, and if users can have the possibility to
disable it on a bridge basis.
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Behavior depends on the type:
- text: Allows any text
- number: Allows any numeric
- list: 'defaultValue' must match either name or value of one element
- checkbox: 'defaultValue' must be checked to activate checkbox
- Use single quote instead of double quotes
- Remove unnecessary empty lines
- Use common format for indentation and blocks
- Use HEREDOC for long strings
- Remove braces from single line if-statements
The 'required' attribute can now be used for all parameters and
enabled/disabled using Boolean states true/false respectively:
"required" : true
or
"required" : false
This now complies to the Wiki:
https://github.com/RSS-Bridge/rss-bridge/wiki/BridgeAbstract
Bridges no longer require implementation for getName() and getURI()
as they are now implemented with default behavior in BridgeAbstract.
This was previously implemented only for RSSExpander and is now part
of BridgeAbstract (automatically inherited).
Documentation is updated accordingly.