當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Kaltura_Client_ParseUtils::checkIfError方法代碼示例

本文整理匯總了PHP中Kaltura_Client_ParseUtils::checkIfError方法的典型用法代碼示例。如果您正苦於以下問題:PHP Kaltura_Client_ParseUtils::checkIfError方法的具體用法?PHP Kaltura_Client_ParseUtils::checkIfError怎麽用?PHP Kaltura_Client_ParseUtils::checkIfError使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Kaltura_Client_ParseUtils的用法示例。


在下文中一共展示了Kaltura_Client_ParseUtils::checkIfError方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: updateStatus

 function updateStatus($id, $status)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "status", $status);
     $this->client->queueServiceActionCall("varconsole_varconsole", "updateStatus", null, $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result);
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:13,代碼來源:VarConsoleService.php

示例2: getTime

 function getTime()
 {
     $kparams = array();
     $this->client->queueServiceActionCall("system", "getTime", 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 = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result);
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:13,代碼來源:SystemService.php

示例3: indexCategoryEntryTags

 function indexCategoryEntryTags($categoryId, $pcToDecrement, $pcToIncrement)
 {
     $kparams = array();
     $this->client->addParam($kparams, "categoryId", $categoryId);
     $this->client->addParam($kparams, "pcToDecrement", $pcToDecrement);
     $this->client->addParam($kparams, "pcToIncrement", $pcToIncrement);
     $this->client->queueServiceActionCall("tagsearch_tag", "indexCategoryEntryTags", null, $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result);
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:14,代碼來源:TagService.php

示例4: getFaspUrl

 function getFaspUrl($flavorAssetId)
 {
     $kparams = array();
     $this->client->addParam($kparams, "flavorAssetId", $flavorAssetId);
     $this->client->queueServiceActionCall("aspera_aspera", "getFaspUrl", 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;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:14,代碼來源:AsperaService.php

示例5: checkLikeExists

 function checkLikeExists($entryId, $userId = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "userId", $userId);
     $this->client->queueServiceActionCall("like_like", "checkLikeExists", 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 = (bool) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result);
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:15,代碼來源:LikeService.php

示例6: getUploadedFileTokenByFileName

 function getUploadedFileTokenByFileName($fileName)
 {
     $kparams = array();
     $this->client->addParam($kparams, "fileName", $fileName);
     $this->client->queueServiceActionCall("upload", "getUploadedFileTokenByFileName", "KalturaUploadResponse", $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, "KalturaUploadResponse");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_UploadResponse");
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:15,代碼來源:UploadService.php

示例7: xAddBulkDownload

 function xAddBulkDownload($entryIds, $flavorParamsId = "")
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryIds", $entryIds);
     $this->client->addParam($kparams, "flavorParamsId", $flavorParamsId);
     $this->client->queueServiceActionCall("xinternal", "xAddBulkDownload", 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;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:15,代碼來源:XInternalService.php

示例8: reportStatus

 function reportStatus($hostname, Kaltura_Client_Type_MediaServerStatus $mediaServerStatus)
 {
     $kparams = array();
     $this->client->addParam($kparams, "hostname", $hostname);
     $this->client->addParam($kparams, "mediaServerStatus", $mediaServerStatus->toParams());
     $this->client->queueServiceActionCall("mediaserver", "reportStatus", "KalturaMediaServer", $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, "KalturaMediaServer");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_MediaServer");
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:16,代碼來源:MediaServerService.php

示例9: getClientNotification

 function getClientNotification($entryId, $type)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "type", $type);
     $this->client->queueServiceActionCall("notification", "getClientNotification", "KalturaClientNotification", $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, "KalturaClientNotification");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_ClientNotification");
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:16,代碼來源:NotificationService.php

示例10: update

 function update($conversionProfileId, $assetParamsId, Kaltura_Client_Type_ConversionProfileAssetParams $conversionProfileAssetParams)
 {
     $kparams = array();
     $this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
     $this->client->addParam($kparams, "assetParamsId", $assetParamsId);
     $this->client->addParam($kparams, "conversionProfileAssetParams", $conversionProfileAssetParams->toParams());
     $this->client->queueServiceActionCall("conversionprofileassetparams", "update", "KalturaConversionProfileAssetParams", $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, "KalturaConversionProfileAssetParams");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_ConversionProfileAssetParams");
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:17,代碼來源:ConversionProfileAssetParamsService.php

示例11: listAction

 function listAction(Kaltura_Client_ContentDistribution_Type_DistributionProviderFilter $filter = null, Kaltura_Client_Type_FilterPager $pager = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->queueServiceActionCall("contentdistribution_distributionprovider", "list", "KalturaDistributionProviderListResponse", $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, "KalturaDistributionProviderListResponse");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_ContentDistribution_Type_DistributionProviderListResponse");
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:20,代碼來源:DistributionProviderService.php

示例12: searchEntries

 function searchEntries(Kaltura_Client_Type_BaseEntryFilter $entryFilter = null, Kaltura_Client_CaptionSearch_Type_CaptionAssetItemFilter $captionAssetItemFilter = null, Kaltura_Client_Type_FilterPager $captionAssetItemPager = null)
 {
     $kparams = array();
     if ($entryFilter !== null) {
         $this->client->addParam($kparams, "entryFilter", $entryFilter->toParams());
     }
     if ($captionAssetItemFilter !== null) {
         $this->client->addParam($kparams, "captionAssetItemFilter", $captionAssetItemFilter->toParams());
     }
     if ($captionAssetItemPager !== null) {
         $this->client->addParam($kparams, "captionAssetItemPager", $captionAssetItemPager->toParams());
     }
     $this->client->queueServiceActionCall("captionsearch_captionassetitem", "searchEntries", "KalturaBaseEntryListResponse", $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, "KalturaBaseEntryListResponse");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_BaseEntryListResponse");
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:23,代碼來源:CaptionAssetItemService.php

示例13: listTemplates

 function listTemplates(Kaltura_Client_EventNotification_Type_EventNotificationTemplateFilter $filter = null, Kaltura_Client_Type_FilterPager $pager = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->queueServiceActionCall("eventnotification_eventnotificationtemplate", "listTemplates", "KalturaEventNotificationTemplateListResponse", $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, "KalturaEventNotificationTemplateListResponse");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_EventNotification_Type_EventNotificationTemplateListResponse");
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:20,代碼來源:EventNotificationTemplateService.php

示例14: doMultiRequest

 public function doMultiRequest()
 {
     $xmlData = $this->doQueue();
     if (is_null($xmlData)) {
         return null;
     }
     $xml = new SimpleXMLElement($xmlData);
     $items = $xml->result->children();
     $ret = array();
     $i = 0;
     foreach ($items as $item) {
         $error = Kaltura_Client_ParseUtils::checkIfError($item, false);
         if ($error) {
             $ret[] = $error;
         } else {
             if ($item->objectType) {
                 $ret[] = Kaltura_Client_ParseUtils::unmarshalObject($item, $this->multiRequestReturnType[$i]);
             } else {
                 if ($item->item) {
                     $ret[] = Kaltura_Client_ParseUtils::unmarshalArray($item, $this->multiRequestReturnType[$i]);
                 } else {
                     $ret[] = Kaltura_Client_ParseUtils::unmarshalSimpleType($item);
                 }
             }
         }
         $i++;
     }
     $this->resetRequest();
     return $ret;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:30,代碼來源:ClientBase.php

示例15: count

 function count(Kaltura_Client_Type_PartnerFilter $filter = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     $this->client->queueServiceActionCall("partner", "count", 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 = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result);
     return $resultObject;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:16,代碼來源:PartnerService.php


注:本文中的Kaltura_Client_ParseUtils::checkIfError方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。