phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlSingleElement.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\common\html
;
4
5
use
Ajax\JsUtils
;
6
7
class
HtmlSingleElement
extends
BaseHtml
{
8
9
public
function
__construct
(
$identifier
,
$tagName
=
"br"
) {
10
parent::__construct(
$identifier
);
11
$this->tagName=
$tagName
;
12
$this->_template=
'<%tagName% id="%identifier%" %properties%/>'
;
13
}
14
15
public
function
setClass
($classNames) {
16
if
(\is_array($classNames)){
17
$classNames=implode(
" "
, $classNames);
18
}
19
$this->
setProperty
(
"class"
, $classNames);
20
return
$this;
21
}
22
23
public
function
addClass
($classNames) {
24
if
(\is_array($classNames)){
25
$classNames=implode(
" "
, $classNames);
26
}
27
$this->
addToProperty
(
"class"
, $classNames);
28
return
$this;
29
}
30
31
public
function
setRole
($value) {
32
$this->
setProperty
(
"role"
, $value);
33
return
$this;
34
}
35
36
public
function
setTitle
($value) {
37
$this->
setProperty
(
"title"
, $value);
38
return
$this;
39
}
40
41
public
function
setStyle
($value){
42
$this->
setProperty
(
"style"
, $value);
43
return
$this;
44
}
45
50
public
function
run
(
JsUtils
$js) {
51
52
}
53
54
/*
55
* (non-PHPdoc)
56
* @see \Ajax\bootstrap\html\BaseHtml::fromArray()
57
*/
58
public
function
fromArray
($array) {
59
$array=parent::fromArray($array);
60
foreach
( $array as $key => $value ) {
61
$this->
setProperty
($key, $value);
62
}
63
return
$array;
64
}
65
66
public
function
setSize
($size) {
67
}
68
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\common\html\BaseHtml
BaseHtml for HTML components.
Definition
BaseHtml.php:17
Ajax\common\html\BaseHtml\$tagName
$tagName
Definition
BaseHtml.php:21
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlSingleElement
Definition
HtmlSingleElement.php:7
Ajax\common\html\HtmlSingleElement\setRole
setRole($value)
Definition
HtmlSingleElement.php:31
Ajax\common\html\HtmlSingleElement\run
run(JsUtils $js)
SimpleExtComponent
Definition
HtmlSingleElement.php:50
Ajax\common\html\HtmlSingleElement\setClass
setClass($classNames)
Definition
HtmlSingleElement.php:15
Ajax\common\html\HtmlSingleElement\setTitle
setTitle($value)
Definition
HtmlSingleElement.php:36
Ajax\common\html\HtmlSingleElement\setStyle
setStyle($value)
Definition
HtmlSingleElement.php:41
Ajax\common\html\HtmlSingleElement\__construct
__construct($identifier, $tagName="br")
Definition
HtmlSingleElement.php:9
Ajax\common\html\HtmlSingleElement\fromArray
fromArray($array)
Definition
HtmlSingleElement.php:58
Ajax\common\html\HtmlSingleElement\addClass
addClass($classNames)
Definition
HtmlSingleElement.php:23
Ajax\common\html\HtmlSingleElement\setSize
setSize($size)
Definition
HtmlSingleElement.php:66
Ajax\common\html\traits\BaseHtmlPropertiesTrait\addToProperty
addToProperty($name, $value, $separator=" ")
Definition
BaseHtmlPropertiesTrait.php:46
Ajax\common\html\traits\BaseHtmlPropertiesTrait\setProperty
setProperty($name, $value)
Definition
BaseHtmlPropertiesTrait.php:30
Ajax\common\html
Definition
BaseHtml.php:2
Ajax
common
html
HtmlSingleElement.php
Generated on Sun Dec 10 2023 16:15:57 for
phpMv-UI
by
doxygen
1.9.8