1 | <?php |
||
22 | class Semantic extends BaseGui { |
||
23 | use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait, |
||
24 | SemanticHtmlModulesTrait,SemanticHtmlViewsTrait; |
||
25 | |||
26 | public function __construct($autoCompile=true) { |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Adds an icon menu |
||
33 | * @param string $identifier |
||
34 | * @param array $items icons |
||
35 | */ |
||
36 | public function htmlIconMenu($identifier, $items=array()) { |
||
39 | |||
40 | /** |
||
41 | * Adds an labeled icon menu |
||
42 | * @param string $identifier |
||
43 | * @param array $items icons |
||
44 | */ |
||
45 | public function htmlLabeledIconMenu($identifier, $items=array()) { |
||
48 | |||
49 | /** |
||
50 | * |
||
51 | * @param string $identifier |
||
52 | * @param string $value |
||
53 | * @param array $items |
||
54 | */ |
||
55 | public function htmlDropdown($identifier, $value="", $items=array()) { |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @param string $identifier |
||
62 | * @param mixed $content |
||
63 | * @return HtmlPopup |
||
64 | */ |
||
65 | public function htmlPopup(BaseHtml $container, $identifier, $content) { |
||
68 | |||
69 | /** |
||
70 | * Returns a new Semantic Html Breadcrumb |
||
71 | * @param string $identifier |
||
72 | * @param array $items |
||
73 | * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true |
||
74 | * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()} |
||
75 | * @return HtmlBreadcrumb |
||
76 | */ |
||
77 | public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) { |
||
80 | |||
81 | /** |
||
82 | * Returns a new Semantic Accordion |
||
83 | * @param string $identifier |
||
84 | * @return HtmlAccordion |
||
85 | */ |
||
86 | public function htmlAccordion($identifier) { |
||
89 | |||
90 | /** |
||
91 | * Return a new Semantic Menu Accordion |
||
92 | * @param string $identifier |
||
93 | * @return HtmlAccordion |
||
94 | */ |
||
95 | public function htmlAccordionMenu($identifier, $items=array()) { |
||
98 | |||
99 | |||
100 | /** |
||
101 | * Returns a new Semantic Sticky |
||
102 | * @param string $identifier |
||
103 | * @param array $content |
||
104 | * @return HtmlSticky |
||
105 | */ |
||
106 | public function htmlSticky($identifier, $content=array()) { |
||
109 | } |