summaryrefslogtreecommitdiff
path: root/lib/Minz/Extension.php
AgeCommit message (Collapse)Author
2015-07-13Fix broken links for extension script/style filesGravatar Marien Fressinaud
Fix https://github.com/FreshRSS/FreshRSS/issues/862
2015-01-15Avoid "PHP Strict Standards" errorGravatar Marien Fressinaud
A "Only variables should be passed by reference" error was raised in the extension->getFileUrl() method.
2015-01-14Fix extension API (coding style)Gravatar Marien Fressinaud
is_enabled() becomes isEnabled(). Sorry for this coding style mistake :s
2015-01-14Add mechanism at (un)install of an extensionGravatar Marien Fressinaud
Test if the install or uninstall has been successfully performed. If these methods return true, all is ok but if a string is returned, the string must explain the problem. This problem is stored in log file. A feedback is given to explain to check log file. This commit fix a problem in the english translation of feedback.sub.feed.internal_problem.
2015-01-08Call handleConfigureAction() even for GET requestsGravatar Marien Fressinaud
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-18Update Minz_TranslationGravatar Marien Fressinaud
- Give possibility to register new i18n files - Add a extension->registerTranslates() method - extensions can define new strings or override previous ones Fix https://github.com/FreshRSS/FreshRSS/issues/731
2014-12-18Fix php interpretation in configure.phtml fileGravatar Marien Fressinaud
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-08Add behaviour to configure action (extensions)Gravatar Marien Fressinaud
- Put extension configure view in dir_ext/configure.phtml - Handle POST action in Extension->handleConfigureAction() method See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-06Add a first draft for hooksGravatar Marien Fressinaud
- New Extension->registerHook($hook_name, $hook_function) method to register a new hook - Only one hook works for the moment: entry_before_insert - ExtensionManager::callHook will need to evolve based on future hooks See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-06Separate views registration from controllers one.Gravatar Marien Fressinaud
- Add an Extension->registerViews() method. - Views are first searched in extension paths, then in APP_PATH. - It gives a way to override easily existing controllers / views. - Change include into an include_once in Dispatcher for new controllers. See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-05Extensions can define new viewsGravatar Marien Fressinaud
- View base pathname is set to the extension directory - An extension can now override an existing controller / view See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-05Give possibility to register a new Controller.Gravatar Marien Fressinaud
- Add a Extension->registerController(name) method - Controllers must be written in extension_dir/controllers/nameController.php - Controllers must be named as FreshExtension_name_Controller - Controllers must extend Minz_ActionController See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-05First draft for listing and manipulate extensionsGravatar Marien Fressinaud
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-05Fix security hole from ext.php script.Gravatar Marien Fressinaud
Now, ext.php can only serve file under a EXTENSIONS_PATH/ext_dir/static/ directory. A 400 Bad Request error will be returned for other files. See https://github.com/FreshRSS/FreshRSS/issues/252 And https://github.com/FreshRSS/FreshRSS/commit/f9b037742a0aeb49cab86782d1a59913c2de47b
2014-12-04Update ext.php to serve any file from extensionsGravatar Marien Fressinaud
Add an extension->getFileUrl() method to facilitate url generation
2014-12-04First draft for the new extension featureGravatar Marien Fressinaud
- Only system extensions can be loaded for the moment by adding them in the config.php file. - Remove previous system (it will be added properly in the new system in the next step).