1 | <?php |
||
25 | trait SemanticHtmlElementsTrait { |
||
26 | |||
27 | public abstract function addHtmlComponent($htmlComponent); |
||
28 | |||
29 | public function addState($state, $elements) { |
||
32 | |||
33 | /** |
||
34 | * Return a new Semantic Html Button |
||
35 | * @param string $identifier |
||
36 | * @param string $value |
||
37 | * @param string $cssStyle |
||
38 | * @param string $onClick |
||
39 | * @return HtmlButton |
||
40 | */ |
||
41 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
44 | |||
45 | /** |
||
46 | * |
||
47 | * @param string $identifier |
||
48 | * @param array $elements |
||
49 | * @param boolean $asIcons |
||
50 | * @return HtmlButtonGroups |
||
51 | */ |
||
52 | public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) { |
||
55 | |||
56 | /** |
||
57 | * Creates an html container |
||
58 | * @param string $identifier |
||
59 | * @param string $content |
||
60 | * @return HtmlContainer |
||
61 | */ |
||
62 | public function htmlContainer($identifier, $content="") { |
||
65 | |||
66 | /** |
||
67 | * |
||
68 | * @param string $identifier |
||
69 | * @param string $content |
||
70 | * @return HtmlDivider |
||
71 | */ |
||
72 | public function htmlDivider($identifier, $content="", $tagName="div") { |
||
75 | |||
76 | /** |
||
77 | * |
||
78 | * @param string $identifier |
||
79 | * @param number $niveau |
||
80 | * @param mixed $content |
||
81 | * @param string $type |
||
82 | * @return HtmlHeader |
||
83 | */ |
||
84 | public function htmlHeader($identifier, $niveau=1, $content=NULL, $type="page") { |
||
87 | |||
88 | /** |
||
89 | * |
||
90 | * @param string $identifier |
||
91 | * @param string $icon |
||
92 | * @return HtmlIcon |
||
93 | */ |
||
94 | public function htmlIcon($identifier, $icon) { |
||
97 | |||
98 | public function htmlImage($identifier, $src="", $alt="", $size=NULL) { |
||
101 | |||
102 | /** |
||
103 | * |
||
104 | * @param string $identifier |
||
105 | * @param array $icons |
||
106 | * @param string $size |
||
107 | * @return HtmlIconGroups |
||
108 | */ |
||
109 | public function htmlIconGroups($identifier, $icons=array(), $size="") { |
||
112 | |||
113 | /** |
||
114 | * |
||
115 | * @param string $identifier |
||
116 | * @param string $type |
||
117 | * @param string $value |
||
118 | * @param string $placeholder |
||
119 | * @return HtmlInput |
||
120 | */ |
||
121 | public function htmlInput($identifier, $type="text", $value="", $placeholder="") { |
||
124 | |||
125 | /** |
||
126 | * |
||
127 | * @param string $identifier |
||
128 | * @param string $content |
||
129 | * @param string $tagName |
||
130 | * @return HtmlLabel |
||
131 | */ |
||
132 | public function htmlLabel($identifier, $content="", $tagName="div") { |
||
135 | |||
136 | /** |
||
137 | * |
||
138 | * @param string $identifier |
||
139 | * @param array $items |
||
140 | * @return HtmlList |
||
141 | */ |
||
142 | public function htmlList($identifier, $items=array()) { |
||
145 | |||
146 | /** |
||
147 | * Adds a new segment, used to create a grouping of related content |
||
148 | * @param string $identifier |
||
149 | * @param string $content |
||
150 | * @return HtmlSegment |
||
151 | */ |
||
152 | public function htmlSegment($identifier, $content="") { |
||
155 | |||
156 | /** |
||
157 | * Adds a group of segments |
||
158 | * @param string $identifier |
||
159 | * @param array $items the segments |
||
160 | * @return HtmlSegmentGroups |
||
161 | */ |
||
162 | public function htmlSegmentGroups($identifier, $items=array()) { |
||
165 | |||
166 | /** |
||
167 | * |
||
168 | * @param string $identifier |
||
169 | * @param string|HtmlSemDoubleElement $visibleContent |
||
170 | * @param string|HtmlSemDoubleElement $hiddenContent |
||
171 | * @param RevealType|string $type |
||
172 | * @param Direction|string $attributeType |
||
173 | */ |
||
174 | public function htmlReveal($identifier, $visibleContent, $hiddenContent, $type=RevealType::FADE, $attributeType=NULL) { |
||
177 | |||
178 | public function htmlStep($identifier, $steps=array()) { |
||
181 | |||
182 | public function htmlFlag($identifier, $flag) { |
||
185 | } |