Ajax/bootstrap/html/HtmlGlyphicon.php
public function setGlyphicon($glyphicon) {
		if (is_int($glyphicon)) {
			$glyphs=CssGlyphicon::getConstants();
			if ($glyphicon<sizeof($glyphs)) {
				$glyphicon=array_values($glyphs)[$glyphicon];
			}
		} else {
			$glyphicon=strtolower($glyphicon);
			if (JString::startsWith($glyphicon, "glyphicon-")===false) {
				$glyphicon="glyphicon-".$glyphicon;
			}
		}
		$this->glyphicon=$glyphicon;
	}
public function setGlyphicon($glyphicon) {
		if (is_int($glyphicon)) {
			$glyphs=CssGlyphicon::getConstants();
			if ($glyphicon<sizeof($glyphs)) {
				$glyphicon=array_values($glyphs)[$glyphicon];
			}
		} else {
			$glyphicon=strtolower($glyphicon);
			if (JString::startsWith($glyphicon, "glyphicon-")===false) {
				$glyphicon="glyphicon-".$glyphicon;
			}
		}
		$this->glyphicon=$glyphicon;
	}
public function setGlyphicon ( $ glyphicon ) { if ( is_int ( $ glyphicon ) ) { $ glyphs = CssGlyphicon :: getConstants ( ) ; if ( $ glyphicon < sizeof ( $ glyphs ) ) { $ glyphicon = array_values ( $ glyphs ) [ $ glyphicon ] ; } } else { $ glyphicon = strtolower ( $ glyphicon ) ; if ( JString :: startsWith ( $ glyphicon , "glyphicon-" ) === false ) { $ glyphicon = "glyphicon-" . $ glyphicon ; } } $ this -> glyphicon = $ glyphicon ; }
Defines the glyphicon with his name or his index
@param string|int $glyphicon
@return \Ajax\bootstrap\html\HtmlGlyphicon
Defines the glyphicon with his name or his index