protected function getDefaultLabelID() { if ($attributes = $this->getViewState('LabelAttributes', null)) { return TCheckBox::getLabelAttributes()->itemAt('id'); } else { return $this->getClientID() . '_label'; } }