phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlList.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\common\html\html5
;
4
5
use
Ajax\common\html\HtmlDoubleElement
;
6
use
Ajax\common\html\HtmlCollection
;
12
class
HtmlList
extends
HtmlCollection
{
13
public
function
__construct
(
$identifier
, $items=array()) {
14
parent::__construct(
$identifier
,
"ul"
);
15
$this->
addItems
($items);
16
}
17
public
function
setOrdered
($ordered=
true
){
18
$this->tagName=($ordered===
true
)?
"ol"
:
"ul"
;
19
}
20
25
protected
function
createItem
($value) {
26
$item=
new
HtmlDoubleElement
(
"item-"
.$this->identifier.
"-"
.$this->count());
27
$item->setTagName(
"li"
);
28
$item->setContent($value);
29
return
$item;
30
}
31
32
}
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlCollection
Base class for Html collections.
Definition
HtmlCollection.php:15
Ajax\common\html\HtmlCollection\addItems
addItems($items)
Definition
HtmlCollection.php:22
Ajax\common\html\HtmlDoubleElement
Definition
HtmlDoubleElement.php:8
Ajax\common\html\html5\HtmlList
Html list (ul or ol)
Definition
HtmlList.php:12
Ajax\common\html\html5\HtmlList\setOrdered
setOrdered($ordered=true)
Definition
HtmlList.php:17
Ajax\common\html\html5\HtmlList\createItem
createItem($value)
The item factory.
Definition
HtmlList.php:25
Ajax\common\html\html5\HtmlList\__construct
__construct($identifier, $items=array())
Definition
HtmlList.php:13
Ajax\common\html\html5
Definition
HtmlImg.php:3
Ajax
common
html
html5
HtmlList.php
Generated on Sun Dec 10 2023 16:15:56 for
phpMv-UI
by
doxygen
1.9.8