Swat/SwatHtmlTag.php
public function addAttributes($attributes)
    {
        if (is_array($attributes)) {
            $this->attributes = array_merge($this->attributes, $attributes);
        }
    }
public function addAttributes($attributes)
    {
        if (is_array($attributes)) {
            $this->attributes = array_merge($this->attributes, $attributes);
        }
    }
public function addAttributes ( $ attributes ) { if ( is_array ( $ attributes ) ) { $ this -> attributes = array_merge ( $ this -> attributes , $ attributes ) ; } }
Adds an array of attributes to this XHTML tag

If entries in the attributes array coincide with existing attributes of
this XHTML tag, the attributes in the array overwrite the existing
attributes.

@param array an array of attribute-value pairs of the form
'attribute' => 'value'.
Adds an array of attributes to this XHTML tag