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