phpQueryObject::__dumpTree PHP Method

__dumpTree() private method

private __dumpTree ( $node, $intend )
    private function __dumpTree($node, $intend = 0)
    {
        $whois = $this->whois($node);
        $return = '';
        if ($whois) {
            $return .= str_repeat(' - ', $intend) . $whois . "\n";
        }
        if (isset($node->childNodes)) {
            foreach ($node->childNodes as $chNode) {
                $return .= $this->__dumpTree($chNode, $intend + 1);
            }
        }
        return $return;
    }