If a control wants to respond to callback event, it must implement this interface.
С версии: 3.1
Пример #1
0
 /**
  * Returns javascript statement that create a new callback request object.
  * @param ICallbackEventHandler callback response handler
  * @param array additional callback options
  * @return string javascript statement that creates a new callback request.
  */
 public function getCallbackReference(ICallbackEventHandler $callbackHandler, $options = null)
 {
     $options = !is_array($options) ? array() : $options;
     $class = new \ReflectionClass($callbackHandler);
     $clientSide = $callbackHandler->getActiveControl()->getClientSide();
     $options = array_merge($options, $clientSide->getOptions()->toArray());
     $optionString = TJavaScript::encode($options);
     $this->registerPradoScriptInternal('ajax');
     $id = $callbackHandler->getUniqueID();
     return "new Prado.CallbackRequest('{$id}',{$optionString})";
 }