/** * Client-side Text property can only be updated after the OnLoad stage. * @param string text content for the textbox */ public function setText($value) { if (parent::getText() === $value) { return; } parent::setText($value); if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) { $this->getPage()->getCallbackClient()->setValue($this, $value); } }
/** * On callback response, the inner HTMl of the label and the * value of the textbox is updated * @param string the text value of the label */ public function setText($value) { if (TTextBox::getText() === $value) { return; } TTextBox::setText($value); if ($this->getActiveControl()->canUpdateClientSide()) { $client = $this->getPage()->getCallbackClient(); $client->update($this->getLabelClientID(), $value); $client->setValue($this, $value); } }