Daniel Rudolf
c0639ccef6
Minor code improvements
2022-03-09 15:36:58 +01:00
Daniel Rudolf
9a8b3da2ae
Simplify PHP class imports
2022-03-03 21:39:27 +01:00
Daniel Rudolf
a3f801b89a
Enable PHP strict typing
...
We can't enable strict typing everywhere without major BC breaks (likely Pico 4.0), so we're doing this on a best-effort basis.
Fixes #603
2022-03-03 21:37:04 +01:00
Daniel Rudolf
e33f6c8148
Update various links
2022-02-13 15:10:08 +01:00
Daniel Rudolf
fe6c8f805a
Re-add deprecated Pico::getBaseThemeUrl() and AbstractPicoPlugin::__call()
...
This reverts commits efc4fb5288
and bc816febfc
2022-02-06 23:15:39 +01:00
Daniel Rudolf
41fc15a7e8
Remove picocms\Pico\ namespace
...
This reverts commit 812ae5c215
2022-02-06 23:14:08 +01:00
Daniel Rudolf
812ae5c215
Move Pico to picocms\Pico\ namespace
2020-04-10 23:08:54 +02:00
Daniel Rudolf
718b790b19
Kick-start development of Pico 3.0
2020-03-29 14:37:35 +02:00
Daniel Rudolf
c99f3cbbdf
Update @version phpDoc class docs
2019-11-11 19:02:11 +01:00
Daniel Rudolf
c1113a780c
Fix @deprecated notice for Pico::getBaseThemeUrl() and AbstractPicoPlugin::__call()
2019-09-12 14:00:58 +02:00
Daniel Rudolf
17aba01513
Various small improvements
2019-09-12 12:42:01 +02:00
Daniel Rudolf
fd97c70502
Deprecated AbstractPicoPlugin::__call() in favour of PicoPluginInterface::getPico()
2019-09-12 12:41:47 +02:00
Daniel Rudolf
581a3a0609
Add AbstractPicoPlugin::configEnabled()
2019-09-12 12:38:59 +02:00
Daniel Rudolf
bbccb374de
phpDoc class docs: Use {@inheritDoc} in AbstractPicoPlugin
2019-09-12 12:38:59 +02:00
Daniel Rudolf
d72bc24ab3
Remove PicoPluginInterface::__construct()
...
It doesn't really matter how the current Pico instance is injected into the plugin unless PicoPluginInterface::getPico() is implemented
2019-09-12 12:38:59 +02:00
Daniel Rudolf
eca06a38a9
phpDoc class docs: Remove superflous @return void
2019-09-12 12:38:59 +02:00
Daniel Rudolf
cde8c8697b
Improve/update/fix phpDoc class docs
2018-12-03 11:52:05 +01:00
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