12 public function addBadge($caption, $leftSeparator=
" ") {
13 $badge=
new HtmlBadge(
"badge-".$this->identifier, $caption);
14 $badge->wrap($leftSeparator);
19 public function addLabel($caption, $style=
"label-default", $leftSeparator=
" ") {
20 $label=
new HtmlLabel(
"label-".$this->identifier, $caption, $style);
21 $label->wrap($leftSeparator);
26 public function addGlyph($glyphicon,$before=
true){
28 $glyph->setGlyphicon($glyphicon);
37 $after=
" ".HtmlGlyphicon::getGlyphicon($glyphAfter);
Composant Twitter Bootstrap Glyphicon.
static getGlyphicon($glyph)
return an instance of GlyphButton with a glyph defined by string or index
addBadge($caption, $leftSeparator=" ")
addLabel($caption, $style="label-default", $leftSeparator=" ")
wrapContentWithGlyph($glyphBefore, $glyphAfter="")
addGlyph($glyphicon, $before=true)
wrapContent($before, $after="")
addContent($content, $before=false)