public function raiseCallbackEvent($param)
{
$params = $param->getCallbackParameter();
if ($params instanceof stdClass) {
$callback = property_exists($params, 'onCallback');
$callbackExpired = property_exists($params, 'onCallbackExpired');
if ($callback) {
$this->WidgetId = $params->widgetId;
$this->Response = $params->response;
$this->Page->CallbackClient->jQuery($params->responseField, 'text', array($params->response));
if ($params->onCallback) {
$this->onCallback($param);
}
}
if ($callbackExpired) {
$this->Response = '';
$this->reset();
if ($params->onCallbackExpired) {
$this->onCallbackExpired($param);
}
}
}
}