I'm trying to extend the RecursiveIteratorIterator class, to limit which
children it recurses through.
The documentation here:
http://www.php.net/~helly/php/ext/spl/classRecursiveIteratorIterator.html
says that there is a ahapublic method callHasChildren(), which I figured
was a good place to start. It seemed like it made sense, except for the
fact that that callHasChildren() does not exist. Overloading the
function does nothing, and instantiating my extended object, then
manually calling callHasChildren() results in a method not found error.
Call to undefined method RecursiveIteratorIterator::callhaschildren()
I'm including my complete extension class below
Thanks,
Chris
class CPage_TreeMenuIterator extends RecursiveIteratorIterator
{
function __construct(CPage_Node $it)
{
parent::__construct($it,RIT_SELF_FIRST);
}
function callHasChildren()
{
echo "CPage_TreeMenuIterator::callHasChildren();<br />\n";
return parent::callHasChildren();
}
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php