From 1fe66ad020ca8f0560bb9c6e311852ed77228f78 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 28 Feb 2022 20:22:43 +0100 Subject: Implement Web scraping "HTML + XPath" (#4220) * More PHP type hints for Fever Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4201 Related to https://github.com/FreshRSS/FreshRSS/issues/4200 * Detail * Draft * Progress * More draft * Fix thumbnail PHP type hint https://github.com/FreshRSS/FreshRSS/issues/4215 * More types * A bit more * Refactor FreshRSS_Entry::fromArray * Progress * Starts to work * Categories * Fonctional * Layout update * Fix relative URLs * Cache system * Forgotten files * Remove a debug line * Automatic form validation of XPath expressions * data-leave-validation * Fix reload action * Simpler examples * Fix column type for PostgreSQL * Enforce HTTP encoding * Readme * Fix get full content * target="_blank" * gitignore * htmlspecialchars_utf8 * Implement HTML And fix/revert `xml:base` support in SimplePie https://github.com/simplepie/simplepie/commit/e49c578817aa504d8d05cd7f33857aeda9d41908 * SimplePie upstream PR merged https://github.com/simplepie/simplepie/pull/723 --- app/Models/View.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'app/Models/View.php') diff --git a/app/Models/View.php b/app/Models/View.php index e3a591155..365bfd261 100644 --- a/app/Models/View.php +++ b/app/Models/View.php @@ -7,12 +7,19 @@ class FreshRSS_View extends Minz_View { public $callbackBeforeFeeds; public $callbackBeforePagination; public $categories; + /** @var FreshRSS_Category|null */ public $category; + /** @var string */ public $current_user; + /** @var array */ public $entries; + /** @var FreshRSS_Entry */ public $entry; + /** @var FreshRSS_Feed|null */ public $feed; + /** @var array */ public $feeds; + /** @var int */ public $nbUnreadTags; public $tags; @@ -88,8 +95,14 @@ class FreshRSS_View extends Minz_View { public $nbPage; // RSS view - public $rss_title; - public $url; + /** @var string */ + public $rss_title = ''; + /** @var string */ + public $rss_url = ''; + /** @var string */ + public $rss_base = ''; + /** @var boolean */ + public $internal_rendering = false; // Content preview public $fatalError; -- cgit v1.2.3