phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
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
,
BaseTrait
{
8
9
public
function
__construct
(
$identifier
, $src=
""
, $alt=
""
) {
10
parent::__construct(
$identifier
, $src, $alt);
11
$this->_baseClass=
"ui image"
;
12
$this->
setClass
($this->_baseClass);
13
}
14
15
public
function
asAvatar
($caption=NULL) {
16
if
(isset($caption))
17
$this->
wrap
(
""
, $caption);
18
return
$this->
addToProperty
(
"class"
,
"avatar"
);
19
}
20
25
public
function
addContent
($content, $before=
false
) {}
26
}
Ajax\common\html\BaseHtml\wrap
wrap($before, $after="")
Definition
BaseHtml.php:170
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlSingleElement\setClass
setClass($classNames)
Definition
HtmlSingleElement.php:15
Ajax\common\html\html5\HtmlImg
Definition
HtmlImg.php:8
Ajax\semantic\html\base\traits\BaseTrait
Definition
BaseTrait.php:17
Ajax\semantic\html\base\traits\BaseTrait\addToProperty
addToProperty($name, $value, $separator=" ")
Ajax\semantic\html\elements\html5\HtmlImg
Definition
HtmlImg.php:7
Ajax\semantic\html\elements\html5\HtmlImg\asAvatar
asAvatar($caption=NULL)
Definition
HtmlImg.php:15
Ajax\semantic\html\elements\html5\HtmlImg\addContent
addContent($content, $before=false)
Definition
HtmlImg.php:25
Ajax\semantic\html\elements\html5\HtmlImg\__construct
__construct($identifier, $src="", $alt="")
Definition
HtmlImg.php:9
Ajax\semantic\html\elements\html5
Definition
HtmlDatalist.php:2
Ajax
semantic
html
elements
html5
HtmlImg.php
Generated on Sun Dec 10 2023 16:15:56 for
phpMv-UI
by
doxygen
1.9.8