phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlLabeledIconMenu.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\collections\menus
;
4
5
use
Ajax\semantic\html\elements\HtmlIcon
;
6
use
Ajax\semantic\html\elements\html5\HtmlLink
;
7
14
class
HtmlLabeledIconMenu
extends
HtmlMenu
{
15
16
21
public
function
__construct
(
$identifier
, $items=array()){
22
parent::__construct(
$identifier
, $items);
23
$this->
addToProperty
(
"class"
,
"labeled icon"
);
24
}
25
30
protected
function
createItem
($value) {
31
$text=
""
;
32
$v=$value;
33
if
(\is_array($value)){
34
$v=@$value[0];
35
$text=@$value[1];
36
}
37
$count=\sizeof($this->content);
38
$value=
new
HtmlIcon
(
"icon-"
.$count, $v);
39
$value->wrap(
""
,$text);
40
$itemO=
new
HtmlLink
(
"item-"
.$count,
""
,$value);
41
return
$itemO->setClass(
"item"
);
42
}
43
}
Ajax\bootstrap\html\HtmlLink
Definition
HtmlLink.php:9
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\semantic\html\base\traits\BaseTrait\addToProperty
addToProperty($name, $value, $separator=" ")
Ajax\semantic\html\collections\menus\HtmlLabeledIconMenu
Semantic Menu component with only labeled icons.
Definition
HtmlLabeledIconMenu.php:14
Ajax\semantic\html\collections\menus\HtmlLabeledIconMenu\createItem
createItem($value)
The item factory.HtmlCollection::createItem()
Definition
HtmlLabeledIconMenu.php:30
Ajax\semantic\html\collections\menus\HtmlLabeledIconMenu\__construct
__construct( $identifier, $items=array())
Definition
HtmlLabeledIconMenu.php:21
Ajax\semantic\html\collections\menus\HtmlMenu
Semantic Menu component.
Definition
HtmlMenu.php:29
Ajax\semantic\html\elements\HtmlIcon
Semantic Icon component.
Definition
HtmlIcon.php:14
Ajax\semantic\html\elements\html5\HtmlLink
Definition
HtmlLink.php:10
Ajax\semantic\html\collections\menus
Definition
HtmlAccordionMenu.php:3
Ajax
semantic
html
collections
menus
HtmlLabeledIconMenu.php
Generated on Sun Dec 10 2023 16:16:05 for
phpMv-UI
by
doxygen
1.9.8