setAttribute('for', zbx_formatDomId($for)); } } /** * Allow to add visual 'asterisk' mark to label. * * @param bool $add_asterisk Define is label marked with asterisk or not. * * @return CLabel */ public function setAsteriskMark($add_asterisk = true) { return $this->addClass($add_asterisk ? ZBX_STYLE_FIELD_LABEL_ASTERISK : null); } }