public function buildAttributes()
    {
        if (is_string($this->attributes))
            return $this->attributes;

        if (count($this->attributes)<1)
            return "";

        $compiled = '';
        foreach ($this->attributes as $key => $val) {
            $compiled .= ' '.$key.'="'.$val.'"';
        }

        return $compiled;
    }
public function buildAttributes()
    {
        if (is_string($this->attributes))
            return $this->attributes;

        if (count($this->attributes)<1)
            return "";

        $compiled = '';
        foreach ($this->attributes as $key => $val) {
            $compiled .= ' '.$key.'="'.$val.'"';
        }

        return $compiled;
    }
public function buildAttributes ( ) { if ( is_string ( $ this -> attributes ) ) return $ this -> attributes ; if ( count ( $ this -> attributes ) < 1 ) return "" ; $ compiled = '' ; foreach ( $ this -> attributes as $ key => $ val ) { $ compiled .= ' ' . $ key . '="' . $ val . '"' ; } return $ compiled ; }
return a attributes in string format
@return string
return a attributes in string format