/** * @param string $image the image src * @return \Ajax\common\html\html5\HtmlImg */ public function asMiniAvatar($image) { $this->tagName = "div"; $img = new HtmlImg("image-" . $this->identifier, $image); $img->setClass("ui mini avatar image"); $this->addContent($img, true); return $img; }
public function __construct($identifier, $src = "", $alt = "") { parent::__construct($identifier, $src, $alt); $this->_baseClass = "ui image"; $this->setClass($this->_baseClass); }