domain = $domain; $this->server = new sspmod_cdc_Server($domain); } /** * Receive a CDC response. * * @return array|NULL The response, or NULL if no response is received. */ public function getResponse() { return $this->server->getResponse(); } /** * Send a request. * * @param string $returnTo The URL we should return to afterwards. * @param string $op The operation we are performing. * @param array $params Additional parameters. */ public function sendRequest($returnTo, $op, array $params = array()) { assert('is_string($returnTo)'); assert('is_string($op)'); $params['op'] = $op; $params['return'] = $returnTo; $this->server->sendRequest($params); } }