Daniel Rudolf
888190f15a
Various small improvements
2018-01-21 23:06:38 +01:00
Daniel Rudolf
afd0a4d7a3
Change AbstractPicoPlugin::$enabled's behavior
...
AbstractPicoPlugin::$enabled now defaults to NULL what leaves the decision whether a plugin should be enabled or disabled by default up to Pico (precisely AbstractPicoPlugin::triggerEvent()). If all dependencies of a plugin are fulfilled, Pico enables the plugin by default. Otherwise the plugin is silently disabled (this was the behavior when AbstractPicoPlugin::$enabled was set to TRUE previously).
If a plugin should never be disabled *silently* (e.g. when dealing with security-relevant stuff like access control, or similar), set AbstractPicoPlugin::$enabled to TRUE. If Pico can't fulfill all the plugin's dependencies, it will throw an RuntimeException.
If a plugin rather does some "crazy stuff" a user should really be aware of before using it, you can set AbstractPicoPlugin::$enabled to FALSE. The user will then have to enable the plugin manually. However, if another plugin depends on this plugin, it might get enabled silently nevertheless.
No matter what, the user can always explicitly enable or disable a plugin in Pico's config.
2017-12-27 21:36:08 +01:00
Daniel Rudolf
61319b011e
Add license/copyright file header; improve phpDoc class docs
2017-10-19 21:55:41 +02:00
Daniel Rudolf
fc76d37dbc
Improve class docs
2017-08-05 02:49:58 +02:00
Daniel Rudolf
32ae70f398
Add $default param to getConfig() method
...
- Pico::getConfig()
- AbstractPicoPlugin::getPluginCongif()
2017-08-05 00:19:03 +02:00
Daniel Rudolf
624310bbe7
Various small improvements
2017-05-13 18:17:58 +02:00
Daniel Rudolf
7b222b03e4
Add Pico::API_VERSION
2017-05-10 17:00:48 +02:00
Daniel Rudolf
8f7e4da53d
Rename Pico 1.1 to Pico 2.0
2016-12-12 15:31:06 +01:00
Daniel Rudolf
5cf47e65de
Various small improvements
2016-12-06 19:03:58 +01:00
Daniel Rudolf
ddf3da0391
Merge branch 'master' into pico-1.1
...
Conflicts:
.htaccess
config/config.php.template
content-sample/index.md
lib/Pico.php
2016-06-18 20:23:23 +02:00
Daniel Rudolf
94279c57f8
Improve phpDocs class docs
2016-05-23 15:13:56 +02:00
Daniel Rudolf
3d11b8a979
Replace is_a() function calls with instanceof operator
2016-03-11 19:07:45 +01:00
Daniel Rudolf
1709b920d1
Add AbstractPicoPlugin::getPluginConfig() method
2016-03-02 21:46:35 +01:00
Daniel Rudolf
a2aa46fd0e
Don't let dependant plugins automatically enable plugins which should be disabled by default
...
Follow-up to f10440b
and c0a7fdc
2016-02-29 20:58:42 +01:00
Daniel Rudolf
c0a7fdc801
Don't always check dependants of a disabled plugin
...
This isn't necessary because dependant plugins will check their dependencies on their own. Follow-up to f10440b
2016-02-29 20:41:41 +01:00
Daniel Rudolf
4f487b7ccf
AbstractPicoPlugin: Fix typos in exception message
2016-02-29 19:47:02 +01:00
Daniel Rudolf
f10440b996
Check dependencies when a plugin is enabled by default
2016-02-29 19:44:25 +01:00
Daniel Rudolf
54ce5b9699
Various small improvements
...
- Improve class docs for phpDocumentor
- Add missing onPagesLoading() event to DummyPlugin
- Add some TODOs to the UPGRADE section of the docs
2015-10-29 02:55:30 +01:00
Daniel Rudolf
a654b1585b
phpDocumentor 2.8.5 currently doesn't support the Generic notations
...
This will likely be implemented as soon as the proposed PSR-5: PHPDoc is accepted
2015-10-27 01:48:58 +01:00
Daniel Rudolf
92af554d14
Improve inline code comments; preparing use of phpDocumentor
2015-10-27 01:39:28 +01:00
theshka
fe83d1fa7f
fix spelling
2015-10-09 20:41:00 +02:00
Daniel Rudolf
46ef63186a
Support $config['<plugin name>']['enabled'] option
...
... as a alternative to $config['<plugin name>.enabled']; Thanks @theshka for giving this hint
2015-10-04 22:52:08 +02:00
Daniel Rudolf
4f1e8667c3
Cast AbstractPicoPlugin::$dependsOn to array
...
Plugin devs could come up with the idea of setting AbstractPicoPlugin::$dependsOn to a string (single dependency) or null (no dependencies)
2015-10-04 22:30:35 +02:00
Daniel Rudolf
27d694697f
Fix code formatting
2015-10-04 21:34:37 +02:00
Daniel Rudolf
70f187fb45
Rename IPicoPlugin to PicoPluginInterface
2015-09-15 13:15:45 +02:00
Daniel Rudolf
71e7da28cc
Various fixes
...
Thanks @PontusHorn for spotting!
2015-09-13 20:46:09 +02:00
Daniel Rudolf
07ae26789c
Add AbstractPicoPlugin
...
The plugin magic takes place here...
2015-08-28 18:26:56 +02:00