[ Index ]

PHP Cross Reference of DokuWiki




/inc/Action/ -> AbstractAction.php (summary)

Class AbstractAction Base class for all actions

File Size: 88 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions


Functions that are not part of a class:

__construct($actionname = '')   X-Ref
AbstractAction constructor.

param: string $actionname the name of this action (see getActionName() for caveats)

checkPreconditions()   X-Ref
Check conditions are met to run this action

return: void

preProcess()   X-Ref
Process data

This runs before any output is sent to the browser.

Throw an Exception if a different action should be run after this step.

return: void

tplContent()   X-Ref
Output whatever content is wanted within tpl_content();

getActionName()   X-Ref
Returns the name of this action

This is usually the lowercased class name, but may differ for some actions.
eg. the export_ modes or for the Plugin action.

return: string