1 | <?php |
||
26 | class Semantic extends BaseGui { |
||
27 | use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait, |
||
28 | SemanticHtmlModulesTrait,SemanticHtmlViewsTrait; |
||
29 | |||
30 | public function __construct($autoCompile=true) { |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | * @param string $identifier |
||
37 | * @param array $items |
||
38 | * @return Ajax\semantic\html\collections\HtmlMenu |
||
39 | */ |
||
40 | public function htmlMenu($identifier, $items=array()) { |
||
43 | |||
44 | /** |
||
45 | * Adds an icon menu |
||
46 | * @param string $identifier |
||
47 | * @param array $items icons |
||
48 | */ |
||
49 | public function htmlIconMenu($identifier, $items=array()) { |
||
52 | |||
53 | /** |
||
54 | * Adds an labeled icon menu |
||
55 | * @param string $identifier |
||
56 | * @param array $items icons |
||
57 | */ |
||
58 | public function htmlLabeledIconMenu($identifier, $items=array()) { |
||
61 | |||
62 | /** |
||
63 | * |
||
64 | * @param string $identifier |
||
65 | * @param string $value |
||
66 | * @param array $items |
||
67 | */ |
||
68 | public function htmlDropdown($identifier, $value="", $items=array()) { |
||
71 | |||
72 | /** |
||
73 | * Adds a new message |
||
74 | * @param string $identifier |
||
75 | * @param string $content |
||
76 | */ |
||
77 | public function htmlMessage($identifier, $content="") { |
||
80 | |||
81 | /** |
||
82 | * |
||
83 | * @param string $identifier |
||
84 | * @param mixed $content |
||
85 | */ |
||
86 | public function htmlPopup(BaseHtml $container, $identifier, $content) { |
||
89 | |||
90 | /** |
||
91 | * |
||
92 | * @param string $identifier |
||
93 | * @param int $numRows |
||
94 | * @param int $numCols |
||
95 | * @param boolean $createCols |
||
96 | * @param boolean $implicitRows |
||
97 | */ |
||
98 | public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) { |
||
101 | |||
102 | /** |
||
103 | * Returns a new Semantic Html Breadcrumb |
||
104 | * @param string $identifier |
||
105 | * @param array $items |
||
106 | * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true |
||
107 | * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()} |
||
108 | * @return HtmlBreadcrumb |
||
109 | */ |
||
110 | public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) { |
||
113 | |||
114 | /** |
||
115 | * Returns a new Semantic Accordion |
||
116 | * @param string $identifier |
||
117 | * @return HtmlAccordion |
||
118 | */ |
||
119 | public function htmlAccordion($identifier) { |
||
122 | |||
123 | /** |
||
124 | * Return a new Semantic Menu Accordion |
||
125 | * @param string $identifier |
||
126 | * @return HtmlAccordion |
||
127 | */ |
||
128 | public function htmlAccordionMenu($identifier, $items=array()) { |
||
131 | |||
132 | /** |
||
133 | * Returns a new Semantic Form |
||
134 | * @param string $identifier |
||
135 | * @param array $elements |
||
136 | */ |
||
137 | public function htmlForm($identifier, $elements=array()) { |
||
140 | |||
141 | public function htmlSticky($identifier, $content=array()) { |
||
144 | } |