_info, $field, $default); } protected function _getInfo($name, $value = null, $attribs = null, $options = null, $listsep = null) { $attribs = (array) $attribs; $id = Qs_Array::get($attribs, 'id'); $info = parent::_getInfo($name, $value, $attribs, $options, $listsep); if ($id && Qs_Array::get($info, 'attribs[disableFor]')) { $info['attribs']['id'] = $id . 'Label'; } foreach (['htmlAfterLabel', 'htmlBeforeLabel'] as $name) { if (array_key_exists($name, $info['attribs'])) { $info[$name] = $info['attribs'][$name]; unset($info['attribs'][$name]); } } $this->_info = $info; return $this->_info; } public function formLabel($name, $value = null, array $attribs = null) { $xhtml = parent::formLabel($name, $value, $attribs); if ($html = $this->getInfo('htmlAfterLabel')) { $xhtml .= $html; } if ($html = $this->getInfo('htmlBeforeLabel')) { $xhtml = $html . $xhtml; } return $xhtml; } }