[dokuwiki] Re: passing functions
- From: "Martin Tschofen" <martin.tschofen@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 28 Apr 2006 20:55:06 -0500
Works for me. I don't need: function hook {} anymore either.
Thanks...martin
On 4/28/06, Andreas Gohr <andi@xxxxxxxxxxxxxx> wrote:
I just pushed a patch which changes the search function to accept an
array in $func. I haven't tested it my self yet - would be great if you
could. The following should work now:
class action_plugin_myindex extends Doku_Action_Plugin {
function getInfo() { ... }
function register() { ... }
function mysearch(&$data, $base, $file, $type, $lvl, $opts) {
...
}
function hook() {
search(..., array(&$this,'mysearch'), ... );
}
} // end class action plugin myindex
Andi
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] passing functions
- From: Martin Tschofen
- [dokuwiki] Re: passing functions
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] passing functions
- » [dokuwiki] Re: passing functions
- » [dokuwiki] Re: passing functions
- » [dokuwiki] Re: passing functions
- » [dokuwiki] Re: passing functions
- » [dokuwiki] Re: passing functions
I just pushed a patch which changes the search function to accept an array in $func. I haven't tested it my self yet - would be great if you could. The following should work now:
class action_plugin_myindex extends Doku_Action_Plugin { function getInfo() { ... }
function register() { ... } function mysearch(&$data, $base, $file, $type, $lvl, $opts) {
...
} function hook() {search(..., array(&$this,'mysearch'), ... ); }
} // end class action plugin myindex
Andi
- [dokuwiki] passing functions
- From: Martin Tschofen
- [dokuwiki] Re: passing functions
- From: Andreas Gohr