protected function getCaptionControlID() { if (($id = $this->getCaptionID()) !== '') { if ($control = $this->getParent()->findControl($id)) { if ($control->getVisible(true)) { return $control->getClientID(); } } else { return $id; } } return ''; }