[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> actions.php (summary)

DokuWiki Actions

Author: Andreas Gohr
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 579 lines (15 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 inc/template.php

Defines 14 functions

  act_dispatch()
  act_sendheaders()
  act_clean()
  act_permcheck()
  act_draftdel()
  act_draftsave()
  act_save()
  act_redirect()
  act_redirect_execute()
  act_auth()
  act_edit()
  act_export()
  act_subscription()
  act_subscriptionns()

Functions
Functions that are not part of a class:

act_dispatch()   X-Ref
Call the needed action handlers

author: Andreas Gohr <andi@splitbrain.org>
triggers: ACTION_ACT_PREPROCESS
triggers: ACTION_HEADERS_SEND

act_sendheaders($headers)   X-Ref
No description

act_clean($act)   X-Ref
Sanitize the action command

Add all allowed commands here.

author: Andreas Gohr <andi@splitbrain.org>

act_permcheck($act)   X-Ref
Run permissionchecks

author: Andreas Gohr <andi@splitbrain.org>

act_draftdel($act)   X-Ref
Handle 'draftdel'

Deletes the draft for the current page and user

act_draftsave($act)   X-Ref
Saves a draft on preview


act_save($act)   X-Ref
Handle 'save'

Checks for spam and conflicts and saves the page.
Does a redirect to show the page afterwards or
returns a new action.

author: Andreas Gohr <andi@splitbrain.org>

act_redirect($id,$preact)   X-Ref
Do a redirect after receiving post data

Tries to add the section id as hash mark after section editing

act_redirect_execute($opts)   X-Ref
No description

act_auth($act)   X-Ref
Handle 'login', 'logout'

author: Andreas Gohr <andi@splitbrain.org>

act_edit($act)   X-Ref
Handle 'edit', 'preview'

author: Andreas Gohr <andi@splitbrain.org>

act_export($act)   X-Ref
Export a wiki page for various formats

Triggers ACTION_EXPORT_POSTPROCESS

Event data:
data['id']      -- page id
data['mode']    -- requested export mode
data['headers'] -- export headers
data['output']  -- export output

author: Andreas Gohr <andi@splitbrain.org>
author: Michael Klier <chi@chimeric.de>

act_subscription($act)   X-Ref
Handle page 'subscribe', 'unsubscribe'

author: Steven Danz <steven-danz@kc.rr.com>

act_subscriptionns($act)   X-Ref
Handle namespace 'subscribe', 'unsubscribe'




Generated: Fri Nov 21 01:30:02 2008 Cross-referenced by PHPXref 0.7