On Sat, 5 Mar 2005 09:41:14 -0600, ngungo <ngungo(a)56degrees.com> wrote:
My question is how do I make use of these parameters
in myFunction()? Or
how to declare them before using them? Let's say for example parameter
$text, I tried: die($text); it did not show anything.
You'll need to declare your function as having the appropriate
parameters (and in the right order). So:
function myFunction($article, $user, $text, $summary, $isminor,
$iswatch, $section) {
/* your code here */
}
By the way, the best way of checking that code is doing what you
expect is probably to set $wgDebugLogFile to somewhere the software
can write its log messages, and then use wfDebug().
I stick my name or something in the debug message, like:
wfDebug("-- IMSoP: text received is $text --" );
That way, I can run a command like
tail -f logfile | grep "IMSoP"
to watch nothing but my debug messages, as they are output.
--
Rowan Collins BSc
[IMSoP]