/** * Update an existing event notification template object * * @param int $id * @param KalturaEventNotificationTemplate $eventNotificationTemplate * @return KalturaEventNotificationTemplate */ function update($id, KalturaEventNotificationTemplate $eventNotificationTemplate) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "eventNotificationTemplate", $eventNotificationTemplate->toParams()); $this->client->queueServiceActionCall("eventnotification_eventnotificationtemplate", "update", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaEventNotificationTemplate"); return $resultObject; }