DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:action_router

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revision
devel:action_router [2018-03-29 12:43]
andi
devel:action_router [2018-04-25 16:27]
andi
Line 1: Line 1:
 ====== Action Router ====== ====== Action Router ======
- 
-[[develonly]] 
  
 The [[xref>ActionRouter]] is the central part that decides what should happen on a request to a Dokuwiki instance based on the [[action mode]]. The [[xref>ActionRouter]] is the central part that decides what should happen on a request to a Dokuwiki instance based on the [[action mode]].
Line 13: Line 11:
   - check if the action is disabled through [[config:disableactions]] or by the auth backend   - check if the action is disabled through [[config:disableactions]] or by the auth backend
     * if yes, shows a message and switches to ''show'' or ''redirect'' actions for GET and POST request respectively     * if yes, shows a message and switches to ''show'' or ''redirect'' actions for GET and POST request respectively
-  - ''Action::checkPermissions''+  - ''Action::checkPreconditions''
     * The action itself can do custom checks that are required to use this action. An [[xref>ActionException]] is to be thrown if permissions aren't met     * The action itself can do custom checks that are required to use this action. An [[xref>ActionException]] is to be thrown if permissions aren't met
   - ''Action::minimumPermission''   - ''Action::minimumPermission''
devel/action_router.txt ยท Last modified: 2021-01-23 17:57 by Klap-in