/**
* Sets the ID of the control that the label is associated with.
* The control must be locatable via {@link TControl::findControl} using the ID.
* On callback response, the For attribute of the label is updated.
* @param string the associated control ID
*/
public function setForControl($value)
{
if (parent::getForControl() === $value) {
return;
}
parent::setForControl($value);
if ($this->getActiveControl()->canUpdateClientSide()) {
$id = $this->findControl($value)->getClientID();
$this->getPage()->getCallbackClient()->setAttribute($this, 'for', $id);
}
}