1 | <?php |
||
23 | class Semantic extends BaseGui { |
||
24 | use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait, |
||
25 | SemanticHtmlModulesTrait,SemanticHtmlViewsTrait; |
||
26 | |||
27 | private $language; |
||
28 | |||
29 | public function __construct($autoCompile=true) { |
||
32 | |||
33 | |||
34 | /** |
||
35 | * Adds an icon menu |
||
36 | * @param string $identifier |
||
37 | * @param array $items icons |
||
38 | */ |
||
39 | public function htmlIconMenu($identifier, $items=array()) { |
||
42 | |||
43 | /** |
||
44 | * Adds an labeled icon menu |
||
45 | * @param string $identifier |
||
46 | * @param array $items icons |
||
47 | */ |
||
48 | public function htmlLabeledIconMenu($identifier, $items=array()) { |
||
51 | |||
52 | /** |
||
53 | * |
||
54 | * @param string $identifier |
||
55 | * @param string $value |
||
56 | * @param array $items |
||
57 | */ |
||
58 | public function htmlDropdown($identifier, $value="", $items=array()) { |
||
61 | |||
62 | /** |
||
63 | * |
||
64 | * @param string $identifier |
||
65 | * @param mixed $content |
||
66 | * @return HtmlPopup |
||
67 | */ |
||
68 | public function htmlPopup(BaseHtml $container, $identifier, $content) { |
||
71 | |||
72 | /** |
||
73 | * Returns a new Semantic Html Breadcrumb |
||
74 | * @param string $identifier |
||
75 | * @param array $items |
||
76 | * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true |
||
77 | * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()} |
||
78 | * @return HtmlBreadcrumb |
||
79 | */ |
||
80 | public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) { |
||
83 | |||
84 | /** |
||
85 | * Returns a new Semantic Accordion |
||
86 | * @param string $identifier |
||
87 | * @return HtmlAccordion |
||
88 | */ |
||
89 | public function htmlAccordion($identifier) { |
||
92 | |||
93 | /** |
||
94 | * Return a new Semantic Menu Accordion |
||
95 | * @param string $identifier |
||
96 | * @return HtmlAccordion |
||
97 | */ |
||
98 | public function htmlAccordionMenu($identifier, $items=array()) { |
||
101 | |||
102 | |||
103 | /** |
||
104 | * Returns a new Semantic Sticky |
||
105 | * @param string $identifier |
||
106 | * @param array $content |
||
107 | * @return HtmlSticky |
||
108 | */ |
||
109 | public function htmlSticky($identifier, $content=array()) { |
||
112 | |||
113 | public function setLanguage($language){ |
||
123 | } |