phpQueryObject::dumpTree PHP Méthode

dumpTree() public méthode

public dumpTree ( $html = true, $title = true )
    public function dumpTree($html = true, $title = true)
    {
        $output = $title ? 'DUMP #' . phpQuery::$dumpCount++ . " \n" : '';
        $debug = phpQuery::$debug;
        phpQuery::$debug = false;
        foreach ($this->stack() as $node) {
            $output .= $this->__dumpTree($node);
        }
        phpQuery::$debug = $debug;
        echo $html ? nl2br(str_replace(' ', ' ', $output)) : $output;
        return $this;
    }