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
4
12class 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}
Base class for Html collections.
Html list (ul or ol)
Definition HtmlList.php:12
createItem($value)
The item factory.
Definition HtmlList.php:25
__construct($identifier, $items=array())
Definition HtmlList.php:13