本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}