traits/image.php
final public function imageAsDOMElement($as = null)
	{
		$dom   = new \DOMDocument('1.0', 'UTF-8');
		$image = $dom->appendChild($dom->createElement('img'));
		$image->setAttribute('height', $this->imageHeight());
		$image->setAttribute('width', $this->imageWidth());
		$image->setAttribute('alt', $this->alt_text);
		$image->setAttribute('src', $this->dataURI($as));
		return $image;
	}
final public function imageAsDOMElement($as = null)
	{
		$dom   = new \DOMDocument('1.0', 'UTF-8');
		$image = $dom->appendChild($dom->createElement('img'));
		$image->setAttribute('height', $this->imageHeight());
		$image->setAttribute('width', $this->imageWidth());
		$image->setAttribute('alt', $this->alt_text);
		$image->setAttribute('src', $this->dataURI($as));
		return $image;
	}
final public function imageAsDOMElement ( $ as = null ) { $ dom = new \ DOMDocument ( '1.0' , 'UTF-8' ) ; $ image = $ dom -> appendChild ( $ dom -> createElement ( 'img' ) ) ; $ image -> setAttribute ( 'height' , $ this -> imageHeight ( ) ) ; $ image -> setAttribute ( 'width' , $ this -> imageWidth ( ) ) ; $ image -> setAttribute ( 'alt' , $ this -> alt_text ) ; $ image -> setAttribute ( 'src' , $ this -> dataURI ( $ as ) ) ; return $ image ; }
Create a DOMElement containing attributes of the image

@param void
@return DOMElement
@uses DOMDocument
Create a DOMElement containing attributes of the image