Swat/SwatHtmlTag.php
private function openInternal($self_closing = false)
    {
        echo '<', $this->tag_name;

        foreach ($this->attributes as $attribute => $value) {
            if ($value !== null) {
                echo ' ',
                    $attribute,
                    '="',
                    SwatString::minimizeEntities($value),
                    '"';
            }
        }

        if ($self_closing) {
            echo ' />';
        } else {
            echo '>';
        }
    }
private function openInternal($self_closing = false)
    {
        echo '<', $this->tag_name;

        foreach ($this->attributes as $attribute => $value) {
            if ($value !== null) {
                echo ' ',
                    $attribute,
                    '="',
                    SwatString::minimizeEntities($value),
                    '"';
            }
        }

        if ($self_closing) {
            echo ' />';
        } else {
            echo '>';
        }
    }
private function openInternal ( $ self_closing = false ) { echo '<' , $ this -> tag_name ; foreach ( $ this -> attributes as $ attribute => $ value ) { if ( $ value !== null ) { echo ' ' , $ attribute , '="' , SwatString :: minimizeEntities ( $ value ) , '"' ; } } if ( $ self_closing ) { echo ' />' ; } else { echo '>' ; } }
Outputs opening tag and all attributes

This is a helper method that does the attribute displaying when opening
this tag. This method can also display self-closing XHTML tags.

@param boolean $self_closing whether this tag should be displayed as a
self-closing tag.
Outputs opening tag and all attributes