DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:xref

This is an old revision of the document!


xref Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" yes
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" unknown

plugin Allows easy linking to a PHPXref generated documentation

Last updated on
2023-08-07
Provides
Syntax
Repository
Source

Tagged with code, links, php

This plugin makes linking to a PHPXref generated documentation easy. You can link to functions, constants, variables, classes tables and filenames. The plugin will figure out what you meant automatically. The XRef documentation needs to be available on the same server as the DokuWiki install running this plugin.

Download and Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Changes

Usage

The syntax is similar to interwiki links. Just start your link with the xref> keyword followed by a function, constant, variable, class, table or file name.

Here are a few examples (case-sensitive!):

  * A function: [[xref>wl()]]
  * A function with arguments [[xref>cleanText($text)]]
  * A global variable: [[xref>$ID]]
  * A class: [[xref>AuthPlugin]]
  * A property: [[xref>cando]], [[xref>canPreventDefault]]
  * A constant: [[xref>AUTH_READ]]
  * A file: [[xref>inc/auth.php]]
  * A function with a title: [[xref>cleanID()|This is an important function]]

It looks like this:

Configuration

The plugin can be configured through the Configuration Manager. You need to specify where your Xref docs are located in the file system and how they can be accessed from the web.

plugin/xref.1691447482.txt.gz · Last modified: 2023-08-08 00:31 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki