summaryrefslogtreecommitdiff
path: root/classes/plugin.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-13 20:03:28 +0300
committerAndrew Dolgov <[email protected]>2021-11-13 20:03:28 +0300
commit5e34fe17a7717b6484e1c7f8a31e3f57e71ab45d (patch)
treeeee1ff58f50b3fcf38144f3ea00f3bd70b29da87 /classes/plugin.php
parent618e96b793769ef4d7912f1f16f1ca7436acd199 (diff)
experimental: bring back plugin hooks to Plugin base class once (to be improved/fixed with annotations later)
Diffstat (limited to 'classes/plugin.php')
-rw-r--r--classes/plugin.php194
1 files changed, 194 insertions, 0 deletions
diff --git a/classes/plugin.php b/classes/plugin.php
index ea79e6a65..feae9ec9c 100644
--- a/classes/plugin.php
+++ b/classes/plugin.php
@@ -93,4 +93,198 @@ abstract class Plugin {
return vsprintf($this->__($msgid), $args);
}
+
+ /* plugin hook methods */
+
+ function hook_article_button($line) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_article_filter($article) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_prefs_tab($tab) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_prefs_tab_section($section) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_prefs_tabs() {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_feed_parsed($parser, $feed_id) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_update_task($cli_options) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_auth_user($login, $password, $service) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_hotkey_map($hotkeys) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_render_article($article) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_render_article_cdm($article) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_feed_fetched($feed_data, $fetch_url, $owner_uid, $feed) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes, $article_id) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_render_article_api($params) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_toolbar_button() {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_action_item() {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_headline_toolbar_button($feed_id, $is_cat) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_hotkey_info($hotkeys) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_article_left_button($row) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_prefs_edit_feed($feed_id) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_prefs_save_feed($feed_id) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed, $last_article_timestamp, $auth_login, $auth_pass) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_query_headlines($row) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_house_keeping() {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_search($query) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_format_enclosures($rv, $result, $id, $always_display_enclosures, $article_content, $hide_images) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_subscribe_feed($contents, $url, $auth_login, $auth_pass) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_headlines_before($feed, $is_cat, $qfh_ret) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_render_enclosure($entry, $id, $rv) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_article_filter_action($article, $action) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_article_export_feed($line, $feed, $is_cat, $owner_uid) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_main_toolbar_button() {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_enclosure_entry($entry, $id, $rv) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_format_article($html, $row) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_feed_basic_info($basic_info, $fetch_url, $owner_uid, $feed_id, $auth_login, $auth_pass) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_send_local_file($filename) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_unsubscribe_feed($feed_id, $owner_uid) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_send_mail(Mailer $mailer, $params) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_filter_triggered($feed_id, $owner_uid, $article, $matched_filters, $matched_rules, $article_filters) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_get_full_text($url) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_article_image($enclosures, $content, $site_url) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_feed_tree() {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_iframe_whitelisted($url) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_enclosure_imported($enclosure, $feed) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_headlines_custom_sort_map() {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_headlines_custom_sort_override($order) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_headline_toolbar_select_menu_item($feed_id, $is_cat) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
+
+ function hook_pre_subscribe($url, $auth_login, $auth_pass) {
+ user_error("Dummy method invoked.", E_USER_ERROR);
+ }
}