Ajax/semantic/html/base/HtmlSemDoubleElement.php
public function addLabel($label, $before=false, $icon=NULL) {
		$labelO=$label;
		if (\is_object($label) === false) {
			$labelO=new HtmlLabel("label-" . $this->identifier, $label);
			if (isset($icon))
				$labelO->addIcon($icon);
		} else {
			$labelO->addToPropertyCtrl("class", "label", array ("label" ));
		}
		$this->addContent($labelO, $before);
		return $labelO;
	}
public function addLabel($label, $before=false, $icon=NULL) {
		$labelO=$label;
		if (\is_object($label) === false) {
			$labelO=new HtmlLabel("label-" . $this->identifier, $label);
			if (isset($icon))
				$labelO->addIcon($icon);
		} else {
			$labelO->addToPropertyCtrl("class", "label", array ("label" ));
		}
		$this->addContent($labelO, $before);
		return $labelO;
	}
public function addLabel ( $ label , $ before = false , $ icon = NULL ) { $ labelO = $ label ; if ( \ is_object ( $ label ) === false ) { $ labelO = new HtmlLabel ( "label-" . $ this -> identifier , $ label ) ; if ( isset ( $ icon ) ) $ labelO -> addIcon ( $ icon ) ; } else { $ labelO -> addToPropertyCtrl ( "class" , "label" , array ( "label" ) ) ; } $ this -> addContent ( $ labelO , $ before ) ; return $ labelO ; }
Adds a label to the element
@param mixed $label
@param boolean $before
@param string $icon
@return mixed|HtmlLabel
Adds a label to the element