History log of /dokuwiki/inc/pluginutils.php (Results 1 – 25 of 56)
Revision Date Author Comments
# d4f83172 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: line breaks


# 90fb952c 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: operator spacing


# 177d6836 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow whitespaces


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# c1482d1c 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function argument spacing


# c1ec88ce 01-May-2020 Andreas Gohr <andi@splitbrain.org>

remove calls to deprecated methods and classes


# 8f6611d2 23-Oct-2019 Satoshi Sahara <sahara.satoshi@gmail.com>

fix php errors

remove unnecessary "public"


# 9c3f55f8 23-Oct-2019 Satoshi Sahara <sahara.satoshi@gmail.com>

sort plugins in plugin_list()


# f219f385 20-Jul-2018 Andreas Gohr <andi@splitbrain.org>

removed get_directory() method from PluginController

This method did absolutely nothing and just returned the plugin name.


# 3a7140a1 15-Jun-2018 Andreas Gohr <andi@splitbrain.org>

moved plugin controller to Extension namespace


# e1d9dcc8 15-Jun-2018 Andreas Gohr <andi@splitbrain.org>

First go at moving the plugin classes into their own namespace


# 923e149a 15-Feb-2019 Michael Große <mic.grosse@googlemail.com>

Merge branch 'master' into psr2


# 64cdf779 30-Oct-2018 Andreas Gohr <gohr@cosmocode.de>

add event to check access to admin plugins

This adds a new method that capsulates the access check that has to be
done to decide if an admin plugin's page should be shown to the user.
The default im

add event to check access to admin plugins

This adds a new method that capsulates the access check that has to be
done to decide if an admin plugin's page should be shown to the user.
The default implementation is the same as before, relying only on the
forAdminOnly() method and the users' isadmin or ismanager status.

Admin plugins themselves can override the method to do additional
checks. In this patch, I added that to the usermanager plugin which will
only return true if the current auth backend can list users.

However the real idea behind this change is that the new method emits a
new event called ADMINPLUGIN_ACCESS_CHECK which would allow plugins to
overwrite it. This way it could be possible to give certain user groups
access to certain admin plugins without giving them admin or manager
permissions.

Note: this does not change how the "Admin" link is shown, it still
depends on ismanager or isadmin. A plugin as mentioned above would need
to influence the display via the MENU_ITEMS_ASSEMBLY event.

Note: this only covers the basic access check. Admin plugins may need
further adjustments for access to other parts of the plugin (like AJAX
components). An additional commit will update this for the bundled
plugins.

show more ...


# 64159a61 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

line lengths shortened

This makes sure all files use line lenghts shorter than 120 characters.

This is a quick fix. It might not always be the nicest change.


# 39bceb98 10-Nov-2017 Andreas Gohr <andi@splitbrain.org>

Change plugin functionality into a trait

This allows for using the functionality in class hierarchies that can
not inherit from DokuWiki_Plugin.


# a61966c5 16-May-2015 Christopher Smith <chris@jalakai.co.uk>

Provide a function to return admin plugin for the page request.

This was previously carried out in three separate places. Refactor
that code to use the new function.

Update tpl_pageTitle test to us

Provide a function to return admin plugin for the page request.

This was previously carried out in three separate places. Refactor
that code to use the new function.

Update tpl_pageTitle test to use a manager level admin plugin.

show more ...


# e3710957 01-Oct-2014 Gerrit Uitslag <klapinklapin@gmail.com>

more phpdocs and minor check


# 53204f80 17-Feb-2014 Gerrit Uitslag <klapinklapin@gmail.com>

cleanup PHPDocs: DokuWiki_Syntax_Plugin is a DokuWiki_Plugin as well


# f2fb3528 15-Oct-2013 Gerrit Uitslag <klapinklapin@gmail.com>

phpdocs plugins util and controller


# 143ff0f8 15-Oct-2013 Gerrit Uitslag <klapinklapin@gmail.com>

improve visibility and PHPdocs of plugin controller


# 7521090b 10-Sep-2012 Michael Hamann <michael@content-space.de>

Move plugin name regex to a constant as suggested by @glensc


# 98aafb56 10-Sep-2011 Hakan Sandell <sandell.hakan@gmail.com>

Code cleanup documentation before merge

Function get_plugin_components() moved to extantion manager


# b838050e 20-Aug-2011 Piyush Mishra <me@piyushmishra.com>

added new plugins config cascade and added plugin.info.txt


# db6f7eae 29-Aug-2010 Andreas Gohr <andi@splitbrain.org>

don't load disabled plugins FS#1990


# f1986589 26-Mar-2010 Michael Klier <chi@chimeric.de>

moved plugincontroller and event handler creation to init.php


123