/**
  * Create a new callback client stub.
  * @param string server url
  * @param array list of form input IDs required on callback request.
  */
 public function __construct($url, $callback_inputs)
 {
     parent::__construct($url);
     $this->callback_inputs = $callback_inputs;
 }
 /**
  * Gets the javascript contents for render.
  * @param TAjaxObjectInfo[] a list of remote objects acceptable.
  * @return string javascript remote proxy code.
  */
 protected function renderScripts($objects)
 {
     $code = '';
     foreach ($objects as $object) {
         $code .= $this->stub->generate($object);
     }
     $this->sendJsHeader(strlen($code));
     echo $code;
 }