phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlGlyphButton.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ajax\bootstrap\html;
4 
10 class HtmlGlyphButton extends HtmlButton {
11  protected $glyph;
12 
13  public function __construct($identifier, $glyph=0, $value="", $cssStyle=null, $onClick=null) {
14  parent::__construct($identifier, $value, $cssStyle, $onClick);
15  $this->_template='<%tagName% id="%identifier%" %properties%>%glyph% %content%</%tagName%>';
16  $this->tagName="button";
17  $this->setGlyph($glyph);
18  }
19 
20  public function setGlyph($glyph) {
21  $this->glyph=new HtmlGlyphicon($this->identifier."-glyph");
22  $this->glyph->setGlyphicon($glyph);
23  return $this;
24  }
25 }
Composant Twitter Bootstrap Glyphicon.
Twitter Bootstrap Button component with a Glyph icon.
__construct($identifier, $glyph=0, $value="", $cssStyle=null, $onClick=null)
Twitter Bootstrap Button component.
Definition: HtmlButton.php:15