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
3
namespace
Ajax\semantic\html\elements\html5
;
4
5
use
Ajax\semantic\html\base\traits\BaseTrait
;
6
7
class
HtmlImg
extends
\Ajax\common\html\html5\HtmlImg
{
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
}
Ajax\common\html\HtmlSingleElement\setClass
setClass($classNames)
Definition:
HtmlSingleElement.php:15
Ajax\common\html\traits\addToProperty
addToProperty($name, $value, $separator=" ")
Definition:
BaseHtmlPropertiesTrait.php:46
Ajax\common\html\BaseHtml\wrap
wrap($before, $after="")
Definition:
BaseHtml.php:171
Ajax\semantic\html\elements\html5
Definition:
HtmlDatalist.php:2
Ajax\semantic\html\elements\html5\HtmlImg\__construct
__construct($identifier, $src="", $alt="")
Definition:
HtmlImg.php:10
Ajax\common\html\html5\HtmlImg
Definition:
HtmlImg.php:8
Ajax\semantic\html\elements\html5\HtmlImg\addContent
addContent($content, $before=false)
Definition:
HtmlImg.php:26
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition:
BaseWidget.php:14
Ajax\semantic\html\elements\html5\HtmlImg\asAvatar
asAvatar($caption=NULL)
Definition:
HtmlImg.php:16
Ajax\semantic\html\elements\html5\HtmlImg
Definition:
HtmlImg.php:7
Ajax\semantic\html\base\traits\BaseTrait
trait BaseTrait
Definition:
BaseTrait.php:17
Ajax
semantic
html
elements
html5
HtmlImg.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13