Tabla de Contenidos

APIdoc Plugin

Compatible con DokuWiki

No hay compatibilidad sobre la información dada!

plugin Plugin for easy API documentation

actualizado por última vez en
2015-11-13
Proporciona
Syntax

La extensión no ha sido actualizada en al menos 2 años. Puede que ya no tenga soporte o no sea mantenida y tenga problemas de compatibilidad.

Etiquetado con apidoc

Installation

Simply unpack the .tgz file into the lib/plugins directory of your DokuWiki. Didn't like the plugin? Just delete the apidoc folder from the lib/plugins and it's all undone.

Examples/Usage

See the plugin in action here, in the API Documentation (new) section..

To document a simple sample class:

<apidoc>
  CLASS|TestKlass|/classes/test.php|[[http://www.stilit.se]] test|This is just a class for testing the APIDoc     DokuWiki plugin.|
  FIELD|VAL|const VAL = 0x001;|A constant just for testing|
  METHOD|constructor|public function __construct()|Test|test
  METHOD|get|get( $name ) {test;}|A string containting the requested value or null if not available|Returns the    requested field from the testclass|
  PARAMETER|$name|String||The name of the field to get|
  PARAMETER|$atest|Integer||A test for sorting|
  METHOD|atest|public function atest()|A test for sorting "strings here" or "strings there"|Test just|
  FIELD|XTAL|const XTAL[test] = 0x002|A test for sorting|
  FIELD|TEST|const TEST = 0x004|A test|
</apidoc>

Would render something like

Syntax

The syntax of the parsed data is a keyword, followed by a set of parameters separated by the | character.

The following keywords and parameters are currently supported.

OBSERVE The CLASS keyword can occur only once, and must be the first keyword in the dataset.
The PARAMETER keyword is used to document a parameter associated with a method. This keyword needs to be superceded by a METHOD keyword or an error will be raised. All parameters will be associated with the last previously defined method.

Configuration and Settings

No configuration needed.

Development

Change Log

Known Bugs and Issues

None at the moment

ToDo/Wish List

Todo:
 * Add a Throws parameter to the METHOD keyword

FAQ