src/UI/HTML/Abstract.php
public function addAttributes( $attributes = array() )
	{
		foreach( $attributes as $key => $value )
		{
			if( $key == 'class' )
			{
				if( is_string( $value ) )
					$value	= explode( " ", $value );
				if( !is_array( $value ) && !( $value instanceof ArrayIterator ) )
					throw new InvalidArgumentException( 'Class attribute must be string, array or iterator' );
				foreach( $value as $class )
					$this->addClass( $class );
				continue;
			}
			else
				$this->attributes[$key]	= $value;
		}
	}
public function addAttributes( $attributes = array() )
	{
		foreach( $attributes as $key => $value )
		{
			if( $key == 'class' )
			{
				if( is_string( $value ) )
					$value	= explode( " ", $value );
				if( !is_array( $value ) && !( $value instanceof ArrayIterator ) )
					throw new InvalidArgumentException( 'Class attribute must be string, array or iterator' );
				foreach( $value as $class )
					$this->addClass( $class );
				continue;
			}
			else
				$this->attributes[$key]	= $value;
		}
	}
public function addAttributes ( $ attributes = array ( ) ) { foreach ( $ attributes as $ key => $ value ) { if ( $ key == 'class' ) { if ( is_string ( $ value ) ) $ value = explode ( " " , $ value ) ; if ( ! is_array ( $ value ) && ! ( $ value instanceof ArrayIterator ) ) throw new InvalidArgumentException ( 'Class attribute must be string, array or iterator' ) ; foreach ( $ value as $ class ) $ this -> addClass ( $ class ) ; continue ; } else $ this -> attributes [ $ key ] = $ value ; } }
Adds Attributes of Element.
@access		public
@param		string		$attributes	Map of Element Attributes
@return		void
Adds Attributes of Element .