/** * @param string caption text */ public function setCaption($value) { if (parent::getCaption() === $value) { return; } parent::setCaption($value); // if it's an active control, this should not be needed. $this->callClientFunction('setCaption', $value); }