pQuery\ConditionalTagNode::toString PHP Méthode

toString() public méthode

public toString ( $attributes = true, $recursive = true, $content_only = false )
    function toString($attributes = true, $recursive = true, $content_only = false)
    {
        if ($content_only) {
            if (is_int($content_only)) {
                --$content_only;
            }
            return $this->toString_content($attributes, $recursive, $content_only);
        }
        $s = '<!' . ($this->hidden ? '--' : '') . '[' . $this->condition . ']>';
        if ($recursive) {
            $s .= $this->toString_content($attributes);
        }
        $s .= '<![endif]' . ($this->hidden ? '--' : '') . '>';
        return $s;
    }