Wednesday 19 December 2007 4:30:47 am
I would like to make an operator that replaces certain occurrences of words with different words. For example replace [ci]Hello[/ci] with for example Hi. Now I made the operator and I used {$node.data_map.body|myoper()}
At the php file I received the $node.data_map.body as $input
function MyOperLogic($input)
{
do the replacement.
}
My question is how to deal with the inputed data. I know it an ezcontentobjectattribute. How can I get to the data_text, etc. Any reading, tutorial, hint, help is appreciated. Thank you.
|