diff options
| author | 2022-05-12 22:15:10 +0200 | |
|---|---|---|
| committer | 2022-05-12 22:15:10 +0200 | |
| commit | 4a87206f2898665e99953590536cedc6c5505f05 (patch) | |
| tree | 398f53769048460071194d398c61c7e847f22d7e /app/Models/Feed.php | |
| parent | 9d1930d9adb4f56ae12209d3d01f4a1ed1af8503 (diff) | |
OPML export/import of some proprietary FreshRSS attributes (#4342)
* OPML export/import of some proprietary FreshRSS attributes
#fix https://github.com/FreshRSS/FreshRSS/issues/4077
And one of the TODOs of https://github.com/FreshRSS/FreshRSS/pull/4220
XPath options, CSS Selector, and action filters
* Bump library patch version
* OPML namespace + documentation
* Add example
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index e0d26046b..b5b6fdfd8 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -245,7 +245,7 @@ class FreshRSS_Feed extends Minz_Model { } $this->url = $value; } - public function _kind($value) { + public function _kind(int $value) { $this->kind = $value; } public function _category($value) { @@ -567,8 +567,8 @@ class FreshRSS_Feed extends Minz_Model { $feedSourceUrl = preg_replace('#((.+)://)(.+)#', '${1}' . $this->httpAuth . '@${3}', $feedSourceUrl); } - // Same naming conventions than https://github.com/RSS-Bridge/rss-bridge/wiki/XPathAbstract - // https://github.com/RSS-Bridge/rss-bridge/wiki/The-collectData-function + // Same naming conventions than https://rss-bridge.github.io/rss-bridge/Bridge_API/XPathAbstract.html + // https://rss-bridge.github.io/rss-bridge/Bridge_API/BridgeAbstract.html#collectdata /** @var array<string,string> */ $xPathSettings = $this->attributes('xpath'); $xPathFeedTitle = $xPathSettings['feedTitle'] ?? ''; @@ -758,7 +758,8 @@ class FreshRSS_Feed extends Minz_Model { } } - public function filtersAction(string $action) { + /** @return array<FreshRSS_BooleanSearch> */ + public function filtersAction(string $action): array { $action = trim($action); if ($action == '') { return array(); @@ -775,6 +776,9 @@ class FreshRSS_Feed extends Minz_Model { return $filters; } + /** + * @param array<string> $filters + */ public function _filtersAction(string $action, $filters) { $action = trim($action); if ($action == '' || !is_array($filters)) { |
