phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Bootstrap.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ajax;
4 
26 
27 class Bootstrap extends BaseGui {
29  public function __construct($autoCompile=true) {
30  parent::__construct($autoCompile);
31  }
32 
33 
42  public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) {
43  return $this->addHtmlComponent(new HtmlButton($identifier, $value, $cssStyle, $onClick));
44  }
45 
55  public function htmlGlyphButton($identifier, $glyphIcon=0, $value="", $cssStyle=NULL, $onClick=NULL) {
56  return $this->addHtmlComponent(new HtmlGlyphButton($identifier, $glyphIcon, $value, $cssStyle, $onClick));
57  }
58 
67  public function htmlButtongroups($identifier, $values=array(), $cssStyle=NULL, $size=NULL) {
68  return $this->addHtmlComponent(new HtmlButtongroups($identifier, $values, $cssStyle, $size));
69  }
70 
79  public function htmlDropdown($identifier, $value="", $items=array(), $cssStyle=NULL, $size=NULL) {
80  return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items, $cssStyle, $size));
81  }
82 
91  public function htmlButtontoolbar($identifier, $elements=array(), $cssStyle=NULL, $size=NULL) {
92  return $this->addHtmlComponent(new HtmlButtontoolbar($identifier, $elements, $cssStyle, $size));
93  }
94 
102  public function htmlNavbar($identifier, $brand="Brand", $brandHref="#") {
103  return $this->addHtmlComponent(new HtmlNavbar($identifier, $brand, $brandHref));
104  }
105 
114  public function htmlProgressbar($identifier, $style="info", $value=0, $max=100, $min=0) {
115  return $this->addHtmlComponent(new HtmlProgressbar($identifier, $style, $value, $max, $min));
116  }
117 
126  public function htmlPanel($identifier, $content=NULL, $header=NULL, $footer=NULL) {
127  return $this->addHtmlComponent(new HtmlPanel($identifier, $content, $header, $footer));
128  }
129 
137  public function htmlAlert($identifier, $message=NULL, $cssStyle="alert-warning") {
138  return $this->addHtmlComponent(new HtmlAlert($identifier, $message, $cssStyle));
139  }
140 
146  public function htmlAccordion($identifier) {
147  return $this->addHtmlComponent(new HtmlAccordion($identifier));
148  }
149 
156  public function htmlCarousel($identifier, $images=NULL) {
157  return $this->addHtmlComponent(new HtmlCarousel($identifier, $images));
158  }
159 
165  public function htmlTabs($identifier) {
166  return $this->addHtmlComponent(new HtmlTabs($identifier));
167  }
175  public function htmlListgroup($identifier,$items=array(),$tagName="ul"){
176  $listGroup=new HtmlListgroup($identifier,$tagName);
177  $listGroup->addItems($items);
178  return $this->addHtmlComponent($listGroup);
179  }
188  public function htmlModal($identifier, $title="", $content="", $buttonCaptions=array()) {
189  return $this->addHtmlComponent(new HtmlModal($identifier, $title, $content, $buttonCaptions));
190  }
191 
201  public function htmlSplitbutton($identifier,$value="", $items=array(), $cssStyle="btn-default", $onClick=NULL) {
202  return $this->addHtmlComponent(new HtmlSplitbutton($identifier, $value, $items, $cssStyle,$onClick));
203  }
204 
210  public function htmlInputgroup($identifier){
211  return $this->addHtmlComponent(new HtmlInputgroup($identifier));
212  }
213 
222  public function htmlBreadcrumbs($identifier,$elements=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
223  return $this->addHtmlComponent(new HtmlBreadcrumbs($identifier,$elements,$autoActive,$startIndex,$hrefFunction));
224  }
225 
235  public function htmlPagination($identifier,$from=1,$to=1,$active=NULL,$countVisible=NULL){
236  return $this->addHtmlComponent(new HtmlPagination($identifier,$from,$to,$active,$countVisible));
237  }
238 
247  public function htmlGridSystem($identifier,$numRows=1,$numCols=NULL){
248  return $this->addHtmlComponent(new HtmlGridSystem($identifier,$numRows,$numCols));
249  }
250 }
htmlAccordion($identifier)
Return a new Bootstrap Accordion.
Definition: Bootstrap.php:146
Twitter Bootstrap Pagination component.
Twitter Bootstrap HTML Navbar component.
Definition: HtmlNavbar.php:16
htmlPanel($identifier, $content=NULL, $header=NULL, $footer=NULL)
Return a new Bootstrap Html Panel.
Definition: Bootstrap.php:126
Twitter Bootstrap Buttongroups component.
htmlGridSystem($identifier, $numRows=1, $numCols=NULL)
Return a new Bootstrap Html Grid system.
Definition: Bootstrap.php:247
Twitter Bootstrap Alert component.
Definition: HtmlAlert.php:16
htmlButtongroups($identifier, $values=array(), $cssStyle=NULL, $size=NULL)
Return a new Bootstrap Html Buttongroups.
Definition: Bootstrap.php:67
Composant Twitter Bootstrap Listgroup.
Composant Twitter Bootstrap Grid system.
Twitter Bootstrap Button component with a Glyph icon.
BaseGui Phalcon library.
Definition: BaseGui.php:18
__construct($autoCompile=true)
Definition: Bootstrap.php:29
Composant Twitter Bootstrap Accordion.
htmlGlyphButton($identifier, $glyphIcon=0, $value="", $cssStyle=NULL, $onClick=NULL)
Return a new Bootstrap Html Glyphbutton.
Definition: Bootstrap.php:55
htmlButtontoolbar($identifier, $elements=array(), $cssStyle=NULL, $size=NULL)
Return a new Bootstrap Html Dropdown.
Definition: Bootstrap.php:91
htmlListgroup($identifier, $items=array(), $tagName="ul")
Return a new Bootstrap Html listGroup.
Definition: Bootstrap.php:175
htmlCarousel($identifier, $images=NULL)
Return a new Bootstrap Html Carousel.
Definition: Bootstrap.php:156
htmlPagination($identifier, $from=1, $to=1, $active=NULL, $countVisible=NULL)
Return a new Bootstrap Html Pagination.
Definition: Bootstrap.php:235
htmlInputgroup($identifier)
Return a new Bootstrap Html InputGroup.
Definition: Bootstrap.php:210
Twitter Bootstrap Button component.
Definition: HtmlButton.php:15
htmlDropdown($identifier, $value="", $items=array(), $cssStyle=NULL, $size=NULL)
Return a new Bootstrap Html Dropdown.
Definition: Bootstrap.php:79
Twitter Bootstrap HTML Inputgroup component.
htmlProgressbar($identifier, $style="info", $value=0, $max=100, $min=0)
Return a new Bootstrap Html Progressbar.
Definition: Bootstrap.php:114
htmlAlert($identifier, $message=NULL, $cssStyle="alert-warning")
Return a new Bootstrap Html Alert.
Definition: Bootstrap.php:137
Twitter Bootstrap HTML Modal component.
Definition: HtmlModal.php:14
Twitter Bootstrap HTML Dropdown component.
Twitter Bootstrap HTML Splitbutton component.
htmlSplitbutton($identifier, $value="", $items=array(), $cssStyle="btn-default", $onClick=NULL)
Return a new Bootstrap Html SplitButton.
Definition: Bootstrap.php:201
htmlModal($identifier, $title="", $content="", $buttonCaptions=array())
Return a new Bootstrap Html modal dialog.
Definition: Bootstrap.php:188
htmlNavbar($identifier, $brand="Brand", $brandHref="#")
Return a new Bootstrap Html Navbar.
Definition: Bootstrap.php:102
htmlBreadcrumbs($identifier, $elements=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL)
Return a new Bootstrap Html Breadcrumbs.
Definition: Bootstrap.php:222
htmlButton($identifier, $value="", $cssStyle=null, $onClick=null)
Return a new Bootstrap Html Button.
Definition: Bootstrap.php:42
Twitter Bootstrap HTML Button toolbar.
Twitter Bootstrap Breadcrumbs component.
htmlTabs($identifier)
Return a new Bootstrap Html tabs.
Definition: Bootstrap.php:165
Composant Twitter Bootstrap panel.
Definition: HtmlPanel.php:16