public function tryAddIcon(Html $el, $icon, $name)
	{
		if ($icon) {
			$el->addHtml(Html::el('span')->class(DataGrid::$icon_prefix . $icon));

			if (strlen($name)) {
				$el->addHtml('&nbsp;');
			}
		}
	}
public function tryAddIcon(Html $el, $icon, $name)
	{
		if ($icon) {
			$el->addHtml(Html::el('span')->class(DataGrid::$icon_prefix . $icon));

			if (strlen($name)) {
				$el->addHtml('&nbsp;');
			}
		}
	}
public function tryAddIcon ( Html $ el , $ icon , $ name ) { if ( $ icon ) { $ el -> addHtml ( Html :: el ( 'span' ) -> class ( DataGrid :: $ icon_prefix . $ icon ) ) ; if ( strlen ( $ name ) ) { $ el -> addHtml ( '&nbsp;' ) ; } } }
Should the element has an icon?
@param  Html            $el
@param  string|null     $icon
@param  string          $name
@return void
Should the element has an icon?