function update($id, Kaltura_Client_Type_ThumbParams $thumbParams) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "thumbParams", $thumbParams->toParams()); $this->client->queueServiceActionCall("thumbparams", "update", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_ThumbParams"); return $resultObject; }
function update($id, Kaltura_Client_Type_ThumbParams $thumbParams) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "thumbParams", $thumbParams->toParams()); $this->client->queueServiceActionCall("thumbparams", "update", "KalturaThumbParams", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = Kaltura_Client_ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaThumbParams"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_ThumbParams"); return $resultObject; }
function getUrl($id, $storageId = null, Kaltura_Client_Type_ThumbParams $thumbParams = null) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "storageId", $storageId); if ($thumbParams !== null) { $this->client->addParam($kparams, "thumbParams", $thumbParams->toParams()); } $this->client->queueServiceActionCall("thumbasset", "getUrl", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); if (!$resultObject) { $resultObject = array(); } $this->client->validateObjectType($resultObject, "string"); return $resultObject; }
function getUrl($id, $storageId = null, Kaltura_Client_Type_ThumbParams $thumbParams = null) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "storageId", $storageId); if ($thumbParams !== null) { $this->client->addParam($kparams, "thumbParams", $thumbParams->toParams()); } $this->client->queueServiceActionCall("thumbasset", "getUrl", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }