function reportKceError(KalturaCEError $kalturaCEError) { $kparams = array(); $this->client->addParam($kparams, "kalturaCEError", $kalturaCEError->toParams()); $this->client->queueServiceActionCall("stats", "reportKceError", $kparams); if ($this->client->isMultiRequest()) { return null; } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaCEError"); return $resultObject; }
/** * @action reportKceError * @param KalturaCEError $kalturaCEError * @return KalturaCEError */ function reportKceErrorAction(KalturaCEError $kalturaCEError) { $_kalturaCEError = $kalturaCEError->toKceInstallationError(); if ($this->getPartnerId() && !$_kalturaCEError->partnerId || $this->getPartnerId && $this->getPartnerId != $_kalturaCEError->partnerId) { $_kalturaCEError->setPartnerId($this->getPartnerId()); } $_kalturaCEError->save(); $kalturaCEError = new KalturaCEError(); // start from blank $kalturaCEError->fromKceInstallationError($_kalturaCEError); return $kalturaCEError; }