Commit graph

14 commits

Author SHA1 Message Date
logmanoriginal
74f0572d91 bridges: Replace returnError function with more specific
Replacements depend on original error code:
400: returnClientError
404: returnServerError
500: returnServerError
501: returnServerError
2016-08-17 14:45:08 +02:00
logmanoriginal
63bb7ef24d bridges: Remove unnecessary functions getName() and getURI() 2016-08-09 20:08:46 +02:00
logmanoriginal
5ad157d2fd bridges: Remove getCacheDuration if default
BridgeAbstract will return 3600 seconds by default, so the function
can be removed from any bridge implementing getCacheDuration
returning the same value.

Documentation updated accordingly.
2016-08-06 16:23:09 +02:00
logmanoriginal
1d53b70272 bridges: Remove unused functions and update scopes
Many bridges implemented getDescription() which is only applicable for
bridges extending RSSExpander.

Functions that are not part of the abstract class or interface should
be in private scope for better readability.
2016-08-06 16:00:56 +02:00
logmanoriginal
b344f50784 Fix indentation and remove empty lines 2016-08-03 14:00:24 +02:00
logmanoriginal
b0dce860f7 Return description from source feed not subsequent pages
Gurumed.org prevents download of pictures from external domains. For a
feed it is sufficient to see a short description of the article as
provided in the source rss.
2016-08-03 13:58:32 +02:00
logmanoriginal
a1a44cd1ff Change all nested functions to member functions
This fixes error "Using $this when not in object context"

Nested functions are not part of the object and therefore don't have
access to the object instance $this!
2016-08-03 13:30:38 +02:00
Pierre Mazière
955eecc299 use BridgeAbstract::file_get_html in all bridges
instead of simple_html_dom function file_get_html

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2016-06-25 23:17:42 +02:00
teromene
11ad75c7e6 Premier lot de bridges utilisant le premier système.
Signed-off-by: teromene <teromene@teromene.fr>
2015-12-06 15:56:39 +01:00
Mitsukarenai
2ed0da8cf0 merge pull #88 2014-08-02 13:55:49 +02:00
Mitsukarenai
e816b2aa80 Fix post limit for FS, GuruMed, OpenTheory 2014-05-30 14:07:34 +02:00
Qwerty
cc6b0bcfd3 Create GuruMedBridge.php 2014-05-30 12:09:00 +02:00
Sebastien SAUVAGE
7c5118959d Removed non-working bridges 2014-02-09 15:08:03 +01:00
Qwerty
365033ac6a Create GuruMedBridge.php
The bridge for gurumed.org
2013-09-02 11:52:49 +02:00