phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlAccordionMenu.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\collections\menus
;
4
5
use
Ajax\semantic\html\content\HtmlAccordionMenuItem
;
6
use
Ajax\JsUtils
;
7
use
Ajax\common\html\HtmlCollection
;
8
9
class
HtmlAccordionMenu
extends
HtmlMenu
{
10
protected
$params
=array();
11
12
public
function
__construct
(
$identifier
, $items=array() ){
13
parent::__construct(
$identifier
, $items);
14
$this->
addToProperty
(
"class"
,
"accordion"
);
15
$this->
setVertical
();
16
}
17
22
protected
function
createItem
($value) {
23
$title=$value;
24
$content
=
""
;
25
if
(\is_array($value)){
26
$title=@$value[0];
$content
=@$value[1];
27
}
28
$itemO=
new
HtmlAccordionMenuItem
(
"item-"
.$this->identifier.
"-"
.$this->count(), $title,
$content
);
29
return
$itemO->setClass(
"item"
);
30
}
31
32
/*
33
* (non-PHPdoc)
34
* @see BaseHtml::run()
35
*/
36
public
function
run
(
JsUtils
$js) {
37
if
(isset($this->_bsComponent)===
false
)
38
$this->_bsComponent=$js->
semantic
()->accordion(
"#"
.$this->identifier,$this->params);
39
$this->
addEventsOnRun
($js);
40
return
$this->_bsComponent
;
41
}
42
43
public
function
setExclusive
($value){
44
$this->params[
"exclusive"
]=$value;
45
}
46
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\JsUtils\semantic
semantic(Semantic $semantic=NULL)
getter or setter of the Semantic-UI variable
Definition
JsUtils.php:158
Ajax\common\html\BaseHtml\$_bsComponent
$_bsComponent
Definition
BaseHtml.php:27
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlCollection
Base class for Html collections.
Definition
HtmlCollection.php:15
Ajax\common\html\HtmlDoubleElement\$content
$content
Definition
HtmlDoubleElement.php:14
Ajax\common\html\traits\BaseHtmlEventsTrait\addEventsOnRun
addEventsOnRun(JsUtils $js=NULL)
Definition
BaseHtmlEventsTrait.php:91
Ajax\semantic\html\base\traits\BaseTrait\addToProperty
addToProperty($name, $value, $separator=" ")
Ajax\semantic\html\collections\menus\HtmlAccordionMenu
Definition
HtmlAccordionMenu.php:9
Ajax\semantic\html\collections\menus\HtmlAccordionMenu\setExclusive
setExclusive($value)
Definition
HtmlAccordionMenu.php:43
Ajax\semantic\html\collections\menus\HtmlAccordionMenu\run
run(JsUtils $js)
SimpleExtComponent\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\Bas...
Definition
HtmlAccordionMenu.php:36
Ajax\semantic\html\collections\menus\HtmlAccordionMenu\createItem
createItem($value)
The item factory.HtmlCollection::createItem()
Definition
HtmlAccordionMenu.php:22
Ajax\semantic\html\collections\menus\HtmlAccordionMenu\__construct
__construct( $identifier, $items=array())
Definition
HtmlAccordionMenu.php:12
Ajax\semantic\html\collections\menus\HtmlAccordionMenu\$params
$params
Definition
HtmlAccordionMenu.php:10
Ajax\semantic\html\collections\menus\HtmlMenu
Semantic Menu component.
Definition
HtmlMenu.php:29
Ajax\semantic\html\collections\menus\HtmlMenu\setVertical
setVertical()
Definition
HtmlMenu.php:175
Ajax\semantic\html\content\HtmlAccordionMenuItem
Definition
HtmlAccordionMenuItem.php:6
Ajax\semantic\html\collections\menus
Definition
HtmlAccordionMenu.php:3
Ajax
semantic
html
collections
menus
HtmlAccordionMenu.php
Generated on Sun Dec 10 2023 16:16:05 for
phpMv-UI
by
doxygen
1.9.8