当前位置: 首页>>代码示例>>PHP>>正文


PHP ParseUtils::checkIfError方法代码示例

本文整理汇总了PHP中Kaltura\Client\ParseUtils::checkIfError方法的典型用法代码示例。如果您正苦于以下问题:PHP ParseUtils::checkIfError方法的具体用法?PHP ParseUtils::checkIfError怎么用?PHP ParseUtils::checkIfError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Kaltura\Client\ParseUtils的用法示例。


在下文中一共展示了ParseUtils::checkIfError方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getFaspUrl

 /**
  * 
  * @return string
  */
 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:klvtz,项目名称:kaltura-client53,代码行数:18,代码来源:AsperaService.php

示例2: getUploadedFileTokenByFileName

 /**
  * 
  * @return \Kaltura\Client\Type\UploadResponse
  */
 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:klvtz,项目名称:kaltura-client53,代码行数:19,代码来源:UploadService.php

示例3: xAddBulkDownload

 /**
  * Creates new download job for multiple entry ids (comma separated), an email will be sent when the job is done
  * 	 This sevice support the following entries: 
  * 	 - MediaEntry
  * 	 - Video will be converted using the flavor params id
  * 	 - Audio will be downloaded as MP3
  * 	 - Image will be downloaded as Jpeg
  * 	 - MixEntry will be flattened using the flavor params id
  * 	 - Other entry types are not supported
  * 	 Returns the admin email that the email message will be sent to 
  * 	 
  * 
  * @return string
  */
 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:klvtz,项目名称:kaltura-client53,代码行数:29,代码来源:XInternalService.php

示例4: reportStatus

 /**
  * Update media server status
  * 	 
  * 
  * @return \Kaltura\Client\Type\MediaServer
  */
 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:klvtz,项目名称:kaltura-client53,代码行数:22,代码来源:MediaServerService.php

示例5: getClientNotification

 /**
  * Return the notifications for a specific entry id and type
  * 	 
  * 
  * @return \Kaltura\Client\Type\ClientNotification
  */
 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:klvtz,项目名称:kaltura-client53,代码行数:22,代码来源:NotificationService.php

示例6: listAction

 /**
  * List media info objects by filter and pager
  * 	 
  * 
  * @return \Kaltura\Client\Type\MediaInfoListResponse
  */
 function listAction(\Kaltura\Client\Type\MediaInfoFilter $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("mediainfo", "list", "KalturaMediaInfoListResponse", $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, "KalturaMediaInfoListResponse");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\MediaInfoListResponse");
     return $resultObject;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:26,代码来源:MediaInfoService.php

示例7: scan

 /**
  * Scan flavor asset according to virus scan profile
  * 	 
  * 
  * @return int
  */
 function scan($flavorAssetId, $virusScanProfileId = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "flavorAssetId", $flavorAssetId);
     $this->client->addParam($kparams, "virusScanProfileId", $virusScanProfileId);
     $this->client->queueServiceActionCall("virusscan_virusscanprofile", "scan", 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:klvtz,项目名称:kaltura-client53,代码行数:21,代码来源:VirusScanProfileService.php

示例8: getByConversionProfileId

 /**
  * Get Flavor Params by Conversion Profile ID
  * 	 
  * 
  * @return array
  */
 function getByConversionProfileId($conversionProfileId)
 {
     $kparams = array();
     $this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
     $this->client->queueServiceActionCall("flavorparams", "getByConversionProfileId", "KalturaFlavorParams", $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::unmarshalArray($resultXmlObject->result, "KalturaFlavorParams");
     $this->client->validateObjectType($resultObject, "array");
     return $resultObject;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:21,代码来源:FlavorParamsService.php

示例9: addFromBulkUpload

 /**
  * 
  * @return \Kaltura\Client\Type\BulkUpload
  */
 function addFromBulkUpload($fileData, \Kaltura\Client\Type\BulkUploadJobData $bulkUploadData = null, \Kaltura\Client\Type\BulkUploadCategoryUserData $bulkUploadCategoryUserData = null)
 {
     $kparams = array();
     $kfiles = array();
     $this->client->addParam($kfiles, "fileData", $fileData);
     if ($bulkUploadData !== null) {
         $this->client->addParam($kparams, "bulkUploadData", $bulkUploadData->toParams());
     }
     if ($bulkUploadCategoryUserData !== null) {
         $this->client->addParam($kparams, "bulkUploadCategoryUserData", $bulkUploadCategoryUserData->toParams());
     }
     $this->client->queueServiceActionCall("categoryuser", "addFromBulkUpload", "KalturaBulkUpload", $kparams, $kfiles);
     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, "KalturaBulkUpload");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\BulkUpload");
     return $resultObject;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:26,代码来源:CategoryUserService.php

示例10: checkLikeExists

 /**
  * 
  * @return bool
  */
 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:klvtz,项目名称:kaltura-client53,代码行数:19,代码来源:LikeService.php

示例11: updateStatus

 /**
  * Function to change a sub-publisher's status
  * 	 
  * 
  * @return
  */
 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:klvtz,项目名称:kaltura-client53,代码行数:19,代码来源:VarConsoleService.php

示例12: count

 /**
  * Count media entries by filter.
  * 	 
  * 
  * @return int
  */
 function count(\Kaltura\Client\Plugin\ExternalMedia\Type\ExternalMediaEntryFilter $filter = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     $this->client->queueServiceActionCall("externalmedia_externalmedia", "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:klvtz,项目名称:kaltura-client53,代码行数:22,代码来源:ExternalMediaService.php

示例13: cancelReplace

 /**
  * Cancels document replacement
  * 	 
  * 
  * @return \Kaltura\Client\Plugin\Document\Type\DocumentEntry
  */
 function cancelReplace($entryId)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->queueServiceActionCall("document", "cancelReplace", "KalturaDocumentEntry", $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, "KalturaDocumentEntry");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\Document\\Type\\DocumentEntry");
     return $resultObject;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:21,代码来源:DocumentService.php

示例14: startWidgetSession

 /**
  * Start a session for Kaltura's flash widgets
  * 	 
  * 
  * @return \Kaltura\Client\Type\StartWidgetSessionResponse
  */
 function startWidgetSession($widgetId, $expiry = 86400)
 {
     $kparams = array();
     $this->client->addParam($kparams, "widgetId", $widgetId);
     $this->client->addParam($kparams, "expiry", $expiry);
     $this->client->queueServiceActionCall("session", "startWidgetSession", "KalturaStartWidgetSessionResponse", $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, "KalturaStartWidgetSessionResponse");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\StartWidgetSessionResponse");
     return $resultObject;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:22,代码来源:SessionService.php

示例15: createPeriodicSyncPoints

 /**
  * Creates perioding metadata sync-point events on a live stream
  * 	 
  * 
  * @return
  */
 function createPeriodicSyncPoints($entryId, $interval, $duration)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "interval", $interval);
     $this->client->addParam($kparams, "duration", $duration);
     $this->client->queueServiceActionCall("livestream", "createPeriodicSyncPoints", 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:klvtz,项目名称:kaltura-client53,代码行数:20,代码来源:LiveStreamService.php


注:本文中的Kaltura\Client\ParseUtils::checkIfError方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。