src/UI/HTML/Image.php
public function render()
	{
		$attributes	= $this->getAttributes();
		if( empty( $this->url ) )
			throw new InvalidArgumentException( 'Image URL is empty' );
		$attributes['title']	= (string) $this->title;
		$attributes['alt'] 		= (string) $this->title;
		$attributes['src'] 		= $this->url;
		return UI_HTML_Tag::create( 'img', NULL, $attributes );
	}
public function render()
	{
		$attributes	= $this->getAttributes();
		if( empty( $this->url ) )
			throw new InvalidArgumentException( 'Image URL is empty' );
		$attributes['title']	= (string) $this->title;
		$attributes['alt'] 		= (string) $this->title;
		$attributes['src'] 		= $this->url;
		return UI_HTML_Tag::create( 'img', NULL, $attributes );
	}
public function render ( ) { $ attributes = $ this -> getAttributes ( ) ; if ( empty ( $ this -> url ) ) throw new InvalidArgumentException ( 'Image URL is empty' ) ; $ attributes [ 'title' ] = ( string ) $ this -> title ; $ attributes [ 'alt' ] = ( string ) $ this -> title ; $ attributes [ 'src' ] = $ this -> url ; return UI_HTML_Tag :: create ( 'img' , NULL , $ attributes ) ; }
Returns rendered HTML Element.
@access		public
@return		string
Returns rendered HTML Element .