plugin:function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:function [2013-06-08 16:26] – discussion update tom_c | plugin:function [2018-05-31 00:16] (current) – [Installation] Klap-in | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : tcafferty@glocalfocal.com | email : tcafferty@glocalfocal.com | ||
type : syntax | type : syntax | ||
- | lastupdate : 2012-11-09 | + | lastupdate : 2013-06-08 |
- | compatible : Angua | + | compatible : Angua, Binky, Hrun |
depends | depends | ||
conflicts | conflicts | ||
Line 22: | Line 22: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | Search and install the plugin using the [[plugin: | ||
- | :!: **External requirements: | ||
- | |||
- | Install the plugin using the [[plugin: | ||
===== Examples/ | ===== Examples/ | ||
- | A sample | + | Two sample |
- | < | + | < |
- | The example passes 4 parameters to the invoked function. | + | < |
+ | < | ||
+ | < | ||
+ | </ | ||
+ | The example passes 4 parameters to the invoked function, invokes a different function with no parameters, and then calls the first function again. | ||
- | Parameters are passed as strings. The example shows how the invoked function typecasts the last parameter to be used as an integer. | + | Parameters are passed as array elements. The example shows how the invoked function typecasts the last parameter to be used as an integer. |
Parameters are not required. The simplest usage is to invoke a function with no parameters. | Parameters are not required. The simplest usage is to invoke a function with no parameters. | ||
+ | |||
+ | Examples can be seen at [[http:// | ||
===== Syntax ===== | ===== Syntax ===== | ||
Line 47: | Line 51: | ||
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
- | - Add a file containing the php function into the /functions folder. The main function must be called | + | - Add a file containing the php function into the /functions folder. The main function must be called |
+ | < | ||
+ | | ||
+ | }; | ||
+ | </ | ||
- Add a configuration parameter in / | - Add a configuration parameter in / | ||
- You can add a function description in / | - You can add a function description in / | ||
Line 55: | Line 63: | ||
=== Change Log === | === Change Log === | ||
- | {{rss>http:// | + | {{rss>https:// |
=== Known Bugs and Issues === | === Known Bugs and Issues === | ||
Line 131: | Line 139: | ||
Millsdude, thanks for this update! It works real nice. I incorporated it into the release. | Millsdude, thanks for this update! It works real nice. I incorporated it into the release. | ||
-- [[user> | -- [[user> | ||
+ | |||
+ | It may be worth noting that, although DokuWiki itself [[: |
plugin/function.1370701581.txt.gz · Last modified: by tom_c