DokuWiki Core Changes

Certain functions of DokuWiki are currently designed to work within the fixed Web-GUI workflow only. To ease implementation of WebDAV, XMLRPC or Unit Tests these parts should be made more flexible. Assumptions about the environment should be removed from functions.

List of affected Functions

  • saveWikiText
    • missing a clean way to signal the outcome of the various things involved (no return value)
  • io_createNamespace
    • no return value
  • a lot of stuff in inc/media.php
    • relies on the $_FILE array, should made to work with arbitrary filehandles
    • eg. move uploaded file to tmp, open a file handle and pass it on to the various other functions

Error messaging

Many functions send errors directly to the user using the msg() function. This does not work in a non Web-Environment.

Ideally all errors should be signaled by return values. Or a streamlined output-independent system should be used.

PHP5 Exceptions would be an ideal candidate.

lab/dokuwikichanges.txt · Zuletzt geändert: 2009/02/04 12:04 von Andreas Gohr
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0