I'm trying to write an extension to an extension (ParserFunctions).
Specifically, I would like to call runReplace from a new extension.
I don't want to extend class, because would like to make backward compatable
(1.16 uses different class system).
Can someone give me hint on how to functional perform the following using
parser function used by #replace. Perhaps executing the same hook that
executes runReplace and if so, what is that hook and how can I find ways to
set up the arguments properly?
/**
* {{#replace_e:value|from|to}}
* Note: If the needle is an empty string, single space is used instead.
* From and to will be escaped using c-syntax before checking value (which
is not escpace)
*/
function runReplace_e( &$parser, $inStr = '', $inReplaceFrom = '',
$inReplaceTo = '' ) {
return (runReplace( &$parser, $inStr, stripcslashes($inReplaceFrom) ,
stripcslashes($inReplaceFrom)));
}
Jack D. Pond
"It is the supreme art of the teacher to awaken joy in creative expression
and knowledge." -- Albert Einstein. 1879-1955