phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlMenuItem.php
Go to the documentation of this file.
1<?php
2
4
8
10 public function __construct($identifier, $content) {
11 parent::__construct($identifier,"div","item",$content);
12 }
13
14 protected function initContent($content){
15 if(\is_array($content)){
16 if(JArray::isAssociative($content)===false){
17 $icon=@$content[0];
18 $title=@$content[1];
19 }else{
20 $icon=@$content["icon"];
21 $title=@$content["title"];
22 }
23 if(isset($icon)){
24 $this->addIcon($icon);
25 }
26 if(isset($title)){
27 $this->setTitle($title);
28 }
29 }else{
30 $this->setContent($content);
31 }
32 }
33}
Base class for Semantic double elements.