1 | <?php |
||
22 | class Semantic extends BaseGui { |
||
23 | |||
24 | public function __construct($autoCompile=true) { |
||
27 | |||
28 | /** |
||
29 | * |
||
30 | * @param string $attachTo |
||
31 | * @param string|array $params |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function popup($attachTo=NULL, $params=NULL) { |
||
37 | |||
38 | public function dropdown($attachTo=NULL, $params=NULL) { |
||
41 | |||
42 | /** |
||
43 | * Return a new Semantic Html Button |
||
44 | * @param string $identifier |
||
45 | * @param string $value |
||
46 | * @param string $cssStyle |
||
47 | * @param string $onClick |
||
48 | * @return HtmlButton |
||
49 | */ |
||
50 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
53 | |||
54 | /** |
||
55 | * @param string $identifier |
||
56 | * @param string $icon |
||
57 | */ |
||
58 | public function htmlIcon($identifier,$icon){ |
||
61 | |||
62 | /** |
||
63 | * @param string $identifier |
||
64 | * @param string $size |
||
65 | * @param array $icons |
||
66 | */ |
||
67 | public function htmlIconGroups($identifier,$size="",$icons=array()){ |
||
80 | |||
81 | /** |
||
82 | * @param string $identifier |
||
83 | * @param array $elements |
||
84 | * @param boolean $asIcons |
||
85 | */ |
||
86 | public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){ |
||
89 | |||
90 | /** |
||
91 | * Creates an html container |
||
92 | * @param string $identifier |
||
93 | * @param string $content |
||
94 | */ |
||
95 | public function htmlContainer($identifier,$content=""){ |
||
98 | |||
99 | /** |
||
100 | * @param string $identifier |
||
101 | * @param string $content |
||
102 | */ |
||
103 | public function htmlDivider($identifier,$content="",$tagName="div"){ |
||
106 | |||
107 | /** |
||
108 | * @param string $identifier |
||
109 | * @param string $content |
||
110 | * @param string $tagName |
||
111 | */ |
||
112 | public function htmlLabel($identifier,$content="",$tagName="div"){ |
||
115 | |||
116 | /** |
||
117 | * @param string $identifier |
||
118 | * @param array $items |
||
119 | */ |
||
120 | public function htmlMenu($identifier,$items=array()){ |
||
123 | |||
124 | /** |
||
125 | * @param string $identifier |
||
126 | * @param string $value |
||
127 | * @param array $items |
||
128 | */ |
||
129 | public function htmlDropdown($identifier, $value="", $items=array()){ |
||
132 | |||
133 | /** |
||
134 | * Adds a new message |
||
135 | * @param string $identifier |
||
136 | * @param string $content |
||
137 | */ |
||
138 | public function htmlMessage($identifier, $content=""){ |
||
141 | |||
142 | /** |
||
143 | * Adds a new segment, used to create a grouping of related content |
||
144 | * @param string $identifier |
||
145 | * @param string $content |
||
146 | */ |
||
147 | public function htmlSegment($identifier, $content=""){ |
||
150 | |||
151 | /** |
||
152 | * Adds a group of segments |
||
153 | * @param string $identifier |
||
154 | * @param array $items the segments |
||
155 | */ |
||
156 | public function htmlSegmentGroups($identifier, $items=array()){ |
||
159 | } |