TControlAdapter is the base class for adapters that customize various behaviors for the control to which the adapter is attached.
Since: 3.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends Prado\TApplicationComponent
Beispiel #1
0
 /**
  * Constructor, trap errors and exception to let the callback response
  * handle them.
  */
 public function __construct(TPage $control)
 {
     parent::__construct($control);
     //TODO: can this be done later?
     $response = $this->getApplication()->getResponse();
     $response->setAdapter(new TCallbackResponseAdapter($response));
     $this->trapCallbackErrorsExceptions();
 }
 /**
  * Saves additional persistent control state. Respond to viewstate changes
  * if necessary.
  */
 public function saveState()
 {
     if ($this->_stateTracker !== null && $this->getControl()->getActiveControl()->canUpdateClientSide(true)) {
         $this->_stateTracker->respondToChanges();
     }
     parent::saveState();
 }