コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }