Thread:Project:Support desk/Alternative Parser::setFunctionHook Callback

From looking at existing extensions I see that including the SFH_OBJECT_ARGS flag in Parser::setFunctionHook causes the need for a different callback function. Without the SFH_OBJECT_ARGS flag the callback function "arraymap" from Semantic Forms (for example) looks like:

renderArrayMap( &$parser, $value = '', $delimiter = ',', $var = 'x', $formula = 'x', $new_delimiter = ', ' )

With SFH_OBJECT_ARGS it looks like

renderArrayMapObj( &$parser, $frame, $args )

Obviously the $value, $delimiter, $var, $formula and $new_delimiter arguments from the first method are all wrapped up in the $args argument in the second. But what is the $frame argument for? What is the benefit of doing the SFH_OBJECT_ARGS method versus the other method?

The explanation of this should be captured in Manual:Parser functions

Thanks!