phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
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\html5\HtmlList\setOrdered
setOrdered($ordered=true)
Definition:
HtmlList.php:17
Ajax\common\html\html5
Definition:
HtmlImg.php:3
Ajax\common\html\HtmlCollection\addItems
addItems($items)
Definition:
HtmlCollection.php:22
HtmlCollection
Ajax\common\html\HtmlCollection
Base class for Html collections.
Definition:
HtmlCollection.php:15
Ajax\common\html\html5\HtmlList\createItem
createItem($value)
Definition:
HtmlList.php:25
Ajax\common\html\BaseHtml\setTagName
setTagName($tagName)
Definition:
BaseHtml.php:142
Ajax\common\html\html5\HtmlList\__construct
__construct($identifier, $items=array())
Definition:
HtmlList.php:13
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition:
BaseWidget.php:14
Ajax\common\html\HtmlDoubleElement
Definition:
HtmlDoubleElement.php:8
Ajax\common\html\html5\HtmlList
Html list (ul or ol)
Definition:
HtmlList.php:12
HtmlDoubleElement
Ajax
common
html
html5
HtmlList.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13