phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlIconMenu.php
Go to the documentation of this file.
1<?php
2
4
7
14class HtmlIconMenu extends HtmlMenu{
15
16
21 public function __construct( $identifier, $items=array()){
22 parent::__construct( $identifier, $items);
23 $this->addToProperty("class", "icon");
24 }
25
26
31 protected function createItem($value) {
32 $count=\sizeof($this->content);
33 $value=new HtmlIcon("icon-".$count, $value);
34 $itemO=new HtmlLink("item-".$count,"",$value);
35 return $itemO->setClass("item");
36 }
37}
addToProperty($name, $value, $separator=" ")
Semantic Menu component with only icons.
createItem($value)
The item factory.HtmlCollection::createItem()
Semantic Icon component.
Definition HtmlIcon.php:14