
|
[dokuwiki]
||
[Date Prev]
[01-2007 Date Index]
[Date Next]
||
[Thread Prev]
[01-2007 Thread Index]
[Thread Next]
[dokuwiki] Re: search.php passing options by ref
- From: "TNHarris" <telliamed@xxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 16 Jan 2007 18:04:15 -0500
On Mon, 15 Jan 2007 22:10:51 -0600, "Martin Tschofen"
<martin.tschofen@xxxxxxxxx> said:
> I'm wondering if it's possible to pass in a variable by ref into the
> search function in search.php
The search function doesn't try to interpret $opts, it just gets passed
as-is to the user function. The helper search_* functions use an array,
but if you're providing your own callback, then $opts can be whatever
you want it to be, such as a reference.
Even if $opts is an array, doesn't PHP let you put a reference in an
array? $opts['myref'] = &$myvar;
-- tom
telliamed@xxxxxxxxxxx
--
http://www.fastmail.fm - IMAP accessible web-mail
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|