[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

(no description)

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

Defines 1 class

AbstractAction:: (5 methods):
  __construct()
  checkPreconditions()
  preProcess()
  tplContent()
  getActionName()


Class: AbstractAction  - X-Ref

Class AbstractAction

Base class for all actions

__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