phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlImg.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
8  use BaseTrait;
9 
10  public function __construct($identifier, $src="", $alt="") {
11  parent::__construct($identifier, $src, $alt);
12  $this->_baseClass="ui image";
13  $this->setClass($this->_baseClass);
14  }
15 
16  public function asAvatar($caption=NULL) {
17  if (isset($caption))
18  $this->wrap("", $caption);
19  return $this->addToProperty("class", "avatar");
20  }
21 
26  public function addContent($content, $before=false) {}
27 }
addToProperty($name, $value, $separator=" ")
wrap($before, $after="")
Definition: BaseHtml.php:171
__construct($identifier, $src="", $alt="")
Definition: HtmlImg.php:10
addContent($content, $before=false)
Definition: HtmlImg.php:26