mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:55:56 +00:00
set some annotations on Plugin hook methods
This commit is contained in:
@@ -96,22 +96,39 @@ abstract class Plugin {
|
|||||||
|
|
||||||
/* plugin hook methods */
|
/* plugin hook methods */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string,mixed> $line
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
function hook_article_button($line) {
|
function hook_article_button($line) {
|
||||||
user_error("Dummy method invoked.", E_USER_ERROR);
|
user_error("Dummy method invoked.", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string,mixed> $article
|
||||||
|
* @return array<string,mixed>
|
||||||
|
*/
|
||||||
function hook_article_filter($article) {
|
function hook_article_filter($article) {
|
||||||
user_error("Dummy method invoked.", E_USER_ERROR);
|
user_error("Dummy method invoked.", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $tab
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function hook_prefs_tab($tab) {
|
function hook_prefs_tab($tab) {
|
||||||
user_error("Dummy method invoked.", E_USER_ERROR);
|
user_error("Dummy method invoked.", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $section
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function hook_prefs_tab_section($section) {
|
function hook_prefs_tab_section($section) {
|
||||||
user_error("Dummy method invoked.", E_USER_ERROR);
|
user_error("Dummy method invoked.", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @return void */
|
||||||
function hook_prefs_tabs() {
|
function hook_prefs_tabs() {
|
||||||
user_error("Dummy method invoked.", E_USER_ERROR);
|
user_error("Dummy method invoked.", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ class Share extends Plugin {
|
|||||||
print __("Article unshared");
|
print __("Article unshared");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @param int $id
|
/**
|
||||||
*
|
* @param string $id
|
||||||
* @return void */
|
* @return void */
|
||||||
function hook_prefs_tab_section($id) {
|
function hook_prefs_tab_section($id) {
|
||||||
if ($id == "prefFeedsPublishedGenerated") {
|
if ($id == "prefFeedsPublishedGenerated") {
|
||||||
|
|||||||
Reference in New Issue
Block a user