| 1 | <?php |
||
| 34 | class Bootstrap extends BaseGui { |
||
|
1 ignored issue
–
show
|
|||
| 35 | |||
| 36 | public function __construct($autoCompile=true) { |
||
| 39 | |||
| 40 | /** |
||
| 41 | * |
||
| 42 | * @param string $attachTo |
||
| 43 | * @param string|array $params |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function generic($attachTo=NULL, $params=NULL) { |
||
| 49 | |||
| 50 | /** |
||
| 51 | * |
||
| 52 | * @param string $attachTo |
||
| 53 | * @param string|array $params |
||
| 54 | * @return $this |
||
| 55 | */ |
||
| 56 | public function modal($attachTo=NULL, $params=NULL) { |
||
| 59 | |||
| 60 | /** |
||
| 61 | * |
||
| 62 | * @param string $attachTo |
||
| 63 | * @param string|array $params |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function tooltip($attachTo=NULL, $params=NULL) { |
||
| 69 | |||
| 70 | /** |
||
| 71 | * |
||
| 72 | * @param string $attachTo |
||
| 73 | * @param string|array $params |
||
| 74 | * @return $this |
||
| 75 | */ |
||
| 76 | public function popover($attachTo=NULL, $params=NULL) { |
||
| 79 | |||
| 80 | /** |
||
| 81 | * |
||
| 82 | * @param string $attachTo |
||
| 83 | * @param string|array $params |
||
| 84 | * @return $this |
||
| 85 | */ |
||
| 86 | public function dropdown($attachTo=NULL, $params=NULL) { |
||
| 89 | |||
| 90 | /** |
||
| 91 | * |
||
| 92 | * @param string $attachTo |
||
| 93 | * @param string|array $params |
||
| 94 | * @return $this |
||
| 95 | */ |
||
| 96 | public function splitbutton($attachTo=NULL, $params=NULL) { |
||
| 99 | |||
| 100 | /** |
||
| 101 | * |
||
| 102 | * @param string $attachTo |
||
| 103 | * @param string|array $params |
||
| 104 | * @return $this |
||
| 105 | */ |
||
| 106 | public function tab($attachTo=NULL, $params=NULL) { |
||
| 109 | |||
| 110 | /** |
||
| 111 | * |
||
| 112 | * @param string $attachTo |
||
| 113 | * @param string|array $params |
||
| 114 | * @return $this |
||
| 115 | */ |
||
| 116 | public function collapse($attachTo=NULL, $params=NULL) { |
||
| 119 | |||
| 120 | /** |
||
| 121 | * |
||
| 122 | * @param string $attachTo |
||
| 123 | * @param string|array $params |
||
| 124 | * @return $this |
||
| 125 | */ |
||
| 126 | public function carousel($attachTo=NULL, $params=NULL) { |
||
| 129 | |||
| 130 | /** |
||
| 131 | * Return a new Bootstrap Html Button |
||
| 132 | * @param string $identifier |
||
| 133 | * @param string $value |
||
| 134 | * @param string $cssStyle |
||
| 135 | * @param string $onClick |
||
| 136 | * @return HtmlButton |
||
| 137 | */ |
||
| 138 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
| 141 | |||
| 142 | /** |
||
| 143 | * Return a new Bootstrap Html Glyphbutton |
||
| 144 | * @param string $identifier |
||
| 145 | * @param mixed $glyphIcon |
||
| 146 | * @param string $value |
||
| 147 | * @param string $cssStyle |
||
| 148 | * @param string $onClick |
||
| 149 | * @return HtmlGlyphButton |
||
| 150 | */ |
||
| 151 | public function htmlGlyphButton($identifier, $glyphIcon=0, $value="", $cssStyle=NULL, $onClick=NULL) { |
||
| 154 | |||
| 155 | /** |
||
| 156 | * Return a new Bootstrap Html Buttongroups |
||
| 157 | * @param string $identifier |
||
| 158 | * @param array $values |
||
| 159 | * @param string $cssStyle |
||
| 160 | * @param string $size |
||
| 161 | * @return HtmlButtongroups |
||
| 162 | */ |
||
| 163 | public function htmlButtongroups($identifier, $values=array(), $cssStyle=NULL, $size=NULL) { |
||
| 166 | |||
| 167 | /** |
||
| 168 | * Return a new Bootstrap Html Dropdown |
||
| 169 | * @param string $identifier |
||
| 170 | * @param array $items |
||
| 171 | * @param string $cssStyle |
||
| 172 | * @param string $size |
||
| 173 | * @return HtmlDropdown |
||
| 174 | */ |
||
| 175 | public function htmlDropdown($identifier, $value="", $items=array(), $cssStyle=NULL, $size=NULL) { |
||
| 178 | |||
| 179 | /** |
||
| 180 | * Return a new Bootstrap Html Dropdown |
||
| 181 | * @param string $identifier |
||
| 182 | * @param array $elements |
||
| 183 | * @param string $cssStyle |
||
| 184 | * @param string $size |
||
| 185 | * @return HtmlButtontoolbar |
||
| 186 | */ |
||
| 187 | public function htmlButtontoolbar($identifier, $elements=array(), $cssStyle=NULL, $size=NULL) { |
||
| 190 | |||
| 191 | /** |
||
| 192 | * Return a new Bootstrap Html Navbar |
||
| 193 | * @param string $identifier |
||
| 194 | * @param string $brand |
||
| 195 | * @param string $brandHref |
||
| 196 | * @return HtmlNavbar |
||
| 197 | */ |
||
| 198 | public function htmlNavbar($identifier, $brand="Brand", $brandHref="#") { |
||
| 201 | |||
| 202 | /** |
||
| 203 | * Return a new Bootstrap Html Progressbar |
||
| 204 | * @param string $identifier |
||
| 205 | * @param string $value |
||
| 206 | * @param string $max |
||
| 207 | * @param string $min |
||
| 208 | * @return HtmlProgressbar |
||
| 209 | */ |
||
| 210 | public function htmlProgressbar($identifier, $style="info", $value=0, $max=100, $min=0) { |
||
| 213 | |||
| 214 | /** |
||
| 215 | * Return a new Bootstrap Html Panel |
||
| 216 | * @param string $identifier the Html identifier of the element |
||
| 217 | * @param mixed $content the panel content (string or HtmlComponent) |
||
| 218 | * @param string $header the header |
||
| 219 | * @param string $footer the footer |
||
| 220 | * @return HtmlPanel |
||
| 221 | */ |
||
| 222 | public function htmlPanel($identifier, $content=NULL, $header=NULL, $footer=NULL) { |
||
| 225 | |||
| 226 | /** |
||
| 227 | * Return a new Bootstrap Html Alert |
||
| 228 | * @param string $identifier |
||
| 229 | * @param string $message |
||
| 230 | * @param string $cssStyle |
||
| 231 | * @return HtmlAlert |
||
| 232 | */ |
||
| 233 | public function htmlAlert($identifier, $message=NULL, $cssStyle="alert-warning") { |
||
| 236 | |||
| 237 | /** |
||
| 238 | * Return a new Bootstrap Accordion |
||
| 239 | * @param string $identifier |
||
| 240 | * @return HtmlAccordion |
||
| 241 | */ |
||
| 242 | public function htmlAccordion($identifier) { |
||
| 245 | |||
| 246 | /** |
||
| 247 | * Return a new Bootstrap Html Carousel |
||
| 248 | * @param string $identifier |
||
| 249 | * @param array $images [(src=>"",alt=>"",caption=>"",description=>""),...] |
||
| 250 | * @return HtmlCarousel |
||
| 251 | */ |
||
| 252 | public function htmlCarousel($identifier, $images=NULL) { |
||
| 255 | |||
| 256 | /** |
||
| 257 | * Return a new Bootstrap Html tabs |
||
| 258 | * @param string $identifier |
||
| 259 | * @return HtmlTabs |
||
| 260 | */ |
||
| 261 | public function htmlTabs($identifier) { |
||
| 264 | /** |
||
| 265 | * Return a new Bootstrap Html listGroup |
||
| 266 | * @param string $identifier |
||
| 267 | * @param array $items array of items to add |
||
| 268 | * @param string $tagName container tagName |
||
| 269 | * @return HtmlListgroup |
||
| 270 | */ |
||
| 271 | public function htmlListgroup($identifier,$items=array(),$tagName="ul"){ |
||
| 276 | /** |
||
| 277 | * Return a new Bootstrap Html modal dialog |
||
| 278 | * @param string $identifier |
||
| 279 | * @param string $title |
||
| 280 | * @param string $content |
||
| 281 | * @param array $buttonCaptions |
||
| 282 | * @return HtmlModal |
||
| 283 | */ |
||
| 284 | public function htmlModal($identifier, $title="", $content="", $buttonCaptions=array()) { |
||
| 287 | |||
| 288 | /** |
||
| 289 | * Return a new Bootstrap Html SplitButton |
||
| 290 | * @param string $identifier |
||
| 291 | * @param string $value |
||
| 292 | * @param array $items |
||
| 293 | * @param string $cssStyle |
||
| 294 | * @param string $onClick |
||
| 295 | * @return HtmlSplitbutton |
||
| 296 | */ |
||
| 297 | public function htmlSplitbutton($identifier,$value="", $items=array(), $cssStyle="btn-default", $onClick=NULL) { |
||
| 300 | |||
| 301 | /** |
||
| 302 | * Return a new Bootstrap Html InputGroup |
||
| 303 | * @param string $identifier |
||
| 304 | * @return HtmlInputgroup |
||
| 305 | */ |
||
| 306 | public function htmlInputgroup($identifier){ |
||
| 309 | |||
| 310 | /** |
||
| 311 | * Return a new Bootstrap Html Breadcrumbs |
||
| 312 | * @param string $identifier |
||
| 313 | * @param array $elements |
||
| 314 | * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true |
||
| 315 | * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()} |
||
| 316 | * @return HtmlBreadcrumbs |
||
| 317 | */ |
||
| 318 | public function htmlBreadcrumbs($identifier,$elements=array(),$autoActive=true,$hrefFunction=NULL){ |
||
| 321 | |||
| 322 | /** |
||
| 323 | * Return a new Bootstrap Html Pagination |
||
| 324 | * @see http://getbootstrap.com/components/#pagination |
||
| 325 | * @param string $identifier |
||
| 326 | * @param int $from default : 1 |
||
| 327 | * @param int $to default : 1 |
||
| 328 | * @param int $active The active page |
||
| 329 | * @return HtmlPagination |
||
| 330 | */ |
||
| 331 | public function htmlPagination($identifier,$from=1,$to=1,$active=NULL,$countVisible=NULL){ |
||
| 334 | } |