Ejemplo n.º 1
0
 /**
  * Create image tag.
  *
  * @static
  * @access     public
  * @param      string     $sImageSource
  * @param      string     $aAltText
  * @param      Attributes $oAttributes
  * @return     string
  * @since      1.0.0-alpha
  * @version    1.0.0-alpha
  */
 public static function img($sImageSource, $aAltText, Attributes $oAttributes = NULL)
 {
     if ($oAttributes === NULL) {
         $oAttributes = new Attributes();
     }
     $oAttributes->setAttribute('src', $sImageSource);
     $oAttributes->setAttribute('alt', $aAltText);
     return '<img ' . $oAttributes->renderAttributes() . ' />';
 }