summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
AgeCommit message (Collapse)Author
2023-03-07Merge pull request 'Replace special feed and category numbers with ↵fox
constants.' (#104) from wn/tt-rss:feature/special-feed-and-cat-consts into master Reviewed-on: https://dev.tt-rss.org/tt-rss/tt-rss/pulls/104
2023-03-05Replace special feed and category numbers with constants.wn_
2023-03-05Address PHPStan 'right side always true' in 'PluginHost::lookup_command()'.wn_
Since 'PluginHost::add_command()' is currently the only way to add to this private array, and it always sets an array, this is reasonably safe.
2022-11-23 * split local cache implementation into a separate classAndrew Dolgov
* allow custom implementations provided by plugins
2022-08-12Use the null coalescing assignment operator in various places.wn_
2022-08-12Replace use of 'array_merge' with the spread operator and 'array_push' in ↵wn_
various places. This isn't supported for arrays with string keys until PHP 8.1. https://wiki.php.net/rfc/spread_operator_for_array
2022-08-12Switch to direct type declarations of class properties.wn_
2022-07-24 * add HOOK_LOGINFORM_ADDITIONAL_BUTTONSAndrew Dolgov
* allow plugins to inject JS code into login form
2021-12-14 * fox.form.Select: add several properties allowing it to betterAndrew Dolgov
imitate other controls like DropDownButton, etc. * rework several main toolbar items to use fox.form.Select instead of other controls * replace HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM with HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM2 because of markup change (option instead of menuitem) * PluginHost: add some explicit typecasts to make intellephense shut up
2021-12-06 * add HOOK_POST_LOGOUTAndrew Dolgov
* auth_remote: add config option AUTH_REMOTE_POST_LOGOUT_URL
2021-11-16pluginhost: set stricter @paramsAndrew Dolgov
2021-11-16adjust phpdoc tags for hook definitions/constants (make them reference each ↵Andrew Dolgov
other)
2021-11-14 * deal with some phpstan warnings in base plugin classAndrew Dolgov
* arguably better hack for incompatible plugins causing E_COMPILE_ERROR
2021-11-14pluginhost: add a hack to not crash on an incompatible plugin more than once ↵Andrew Dolgov
(per login) - UGLY
2021-11-12Switch class properties from PHP typing to PHPDoc for compatibility with PHP ↵wn_
< 7.4.0
2021-11-12Address PHPStan warnings in 'classes/pluginhost.php'.wn_
2021-11-01Address PHPStan warnings in 'classes/pluginhost.php'.wn_
------ -------------------------------------------------------------------- Line classes/pluginhost.php ------ -------------------------------------------------------------------- 16 Property PluginHost::$last_registered is never read, only written. 386 If condition is always true. ------ --------------------------------------------------------------------
2021-10-22pluginhost: update comments for HOOK_ constants to use phpdoc syntax; add ↵Andrew Dolgov
HOOK_PRE_SUBSCRIBE
2021-04-09pluginhost: add profile_get/profile_set helpersAndrew Dolgov
2021-03-15Fix E_NOTICE in `add_handler()`.JustAMacUser
2021-03-07 * af_redditimgur: optionally import scoreAndrew Dolgov
* add pluginhost->set_array() to set many plugin settings at once
2021-03-03wip: initial for db_migrationsAndrew Dolgov
2021-03-03add basic local plugin uninstallerAndrew Dolgov
2021-03-03add a send test email button to prefs/systemAndrew Dolgov
2021-03-02pluginhost: remove namespace classloader, plugins should use composer insteadAndrew Dolgov
2021-03-02* sanitize: never rewrite relative links to our own prefixAndrew Dolgov
* use Config::get_self_url() instead of get_self_url_prefix() in a bunch of places
2021-02-26add pluginhost->get_array() shorthandAndrew Dolgov
2021-02-22dirname(__FILE__) -> __DIR__Andrew Dolgov
2021-02-22fix several issues reported by phpstanAndrew Dolgov
2021-02-22reinstate HOOK_RENDER_ENCLOSUREAndrew Dolgov
2021-02-19move bookmarklet-related methods out of public.php into the pluginAndrew Dolgov
2021-02-17 * add (disabled) shortcut syntax for plugin methodsAndrew Dolgov
* add controls shortcut for pluginhandler tags * add similar shortcut for frontend * allow plugins to selectively exclude their methods from CSRF checking
2021-02-17* implement shortcut syntax for exposed plugin methodsAndrew Dolgov
* move shared article rendering code to share plugin
2021-02-15article: unify namingAndrew Dolgov
2021-02-09pluginhost: a few more warnings and type hintsAndrew Dolgov
2021-02-08pluginhost: add some type hintsAndrew Dolgov
2021-02-08db: add type hintsAndrew Dolgov
2021-02-08more hooks, also add type hint for PluginHost::getInstance()Andrew Dolgov
2021-02-08pluginhost: note hook function prototypesAndrew Dolgov
2021-02-08pluginhost: deny hook registration to plugins which lack relevant ↵Andrew Dolgov
implementation methods
2021-02-08move some old-style handlers to new callback onesAndrew Dolgov
2021-02-08pluginhost: rework run_hooks() to be shorter, add callback variant; ↵Andrew Dolgov
implement exception handling for both
2021-02-08pluginhost: catch errors while loading plugin source codeAndrew Dolgov
2021-02-08pluginhost: catch fatal errors in plugin initAndrew Dolgov
2021-02-06fix some more warnings reported by phpstanAndrew Dolgov
2021-02-05initial WIP for php8; bump php version requirement to 7.0Andrew Dolgov
2021-01-17Select... dropdown: replace dijit Select with DropDownButton, simplify layoutAndrew Dolgov
PluginHost: add HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM Headlines.onActionChanged: removed
2021-01-15pluginhost: load_data: check schema lastAndrew Dolgov
2021-01-15pluginhost: load plugin data automatically (also marks load_data method as ↵Andrew Dolgov
private)
2020-09-22use self:: in some places to invoke static methods from the same classAndrew Dolgov