/** * Returns the label for this block. * @return string the label */ protected function getLabel() { if (isset($this->labelOptions['class'])) { $this->labelOptions['class'] .= ' control-label'; } else { $this->labelOptions['class'] = 'control-label'; } return parent::getLabel(); }
/** * Returns the label for this block. * @param array $htmlOptions additional HTML attributes * @return string the label */ protected function getLabel($htmlOptions = array()) { $cssClass = 'control-label'; if (isset($htmlOptions['class'])) { $htmlOptions['class'] .= ' ' . $cssClass; } else { $htmlOptions['class'] = $cssClass; } return parent::getLabel($htmlOptions); }
/** * Returns the label for this block. * @param array $htmlOptions additional HTML attributes * @return string the label */ protected function getLabel($htmlOptions = array()) { if (!isset($this->htmlOptions['labelOptions'])) { $this->htmlOptions['labelOptions'] = array(); } if (isset($this->htmlOptions['labelOptions']['class'])) { $this->htmlOptions['labelOptions']['class'] .= ' control-label'; } else { $this->htmlOptions['labelOptions']['class'] = 'control-label'; } return parent::getLabel(); }
/** * Returns the label for this block. * @param array $htmlOptions additional HTML attributes * @return string the label */ protected function getLabel($htmlOptions = array()) { $classes = 'control-label'; if (isset($htmlOptions['class'])) { $htmlOptions['class'] .= ' ' . $classes; } else { $htmlOptions['class'] = $classes; } if (isset($this->htmlOptions['id'])) { $htmlOptions['for'] = $this->htmlOptions['id']; } return parent::getLabel($htmlOptions); }
/** * Returns the label for this block. * @param array $htmlOptions additional HTML attributes * @return string the label */ protected function getLabel($htmlOptions = array()) { $htmlOptions['class'] = 'control-label'; return parent::getLabel($htmlOptions); }