function update($entryId, KalturaDocumentEntry $documentEntry) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "documentEntry", $documentEntry->toParams()); $this->client->queueServiceActionCall("document", "update", $kparams); if ($this->client->isMultiRequest()) { return null; } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaDocumentEntry"); return $resultObject; }