Prado\Web\UI\ActiveControls\TActiveLabel::setForControl PHP Метод

setForControl() публичный Метод

The control must be locatable via {@link TControl::findControl} using the ID. On callback response, the For attribute of the label is updated.
public setForControl ( $value )
    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);
        }
    }