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


PHP Kaltura_Client_ParseUtils::unmarshalSimpleType方法代碼示例

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


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

示例1: 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

示例2: 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

示例3: collect

 function collect(Kaltura_Client_Type_StatsEvent $event)
 {
     $kparams = array();
     $this->client->addParam($kparams, "event", $event->toParams());
     $this->client->queueServiceActionCall("stats", "collect", 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,代碼行數:14,代碼來源:StatsService.php

示例4: 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

示例5: upload

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

示例6: 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

示例7: login

 function login($email, $password, $partnerId = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "email", $email);
     $this->client->addParam($kparams, "password", $password);
     $this->client->addParam($kparams, "partnerId", $partnerId);
     $this->client->queueServiceActionCall("adminuser", "login", 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,代碼行數:16,代碼來源:AdminUserService.php

示例8: getDownloadUrl

 function getDownloadUrl($id, $useCdn = false)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "useCdn", $useCdn);
     $this->client->queueServiceActionCall("flavorasset", "getDownloadUrl", 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,代碼來源:FlavorAssetService.php

示例9: 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

示例10: isLive

 function isLive($id)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->queueServiceActionCall("livechannel", "isLive", 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,代碼行數:14,代碼來源:LiveChannelService.php

示例11: requestConversion

 function requestConversion($entryId, $fileFormat)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "fileFormat", $fileFormat);
     $this->client->queueServiceActionCall("media", "requestConversion", 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,代碼行數:15,代碼來源:MediaService.php

示例12: getUrl

 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;
 }
開發者ID:Blaeg,項目名稱:kaltura-migrations,代碼行數:18,代碼來源:ThumbAssetService.php

示例13: index

 function index($entryId, $categoryId, $shouldUpdate = true)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "categoryId", $categoryId);
     $this->client->addParam($kparams, "shouldUpdate", $shouldUpdate);
     $this->client->queueServiceActionCall("categoryentry", "index", 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,代碼來源:CategoryEntryService.php

示例14: getUrlForReportAsCsv

 function getUrlForReportAsCsv($reportTitle, $reportText, $headers, $reportType, Kaltura_Client_Type_ReportInputFilter $reportInputFilter, $dimension = null, Kaltura_Client_Type_FilterPager $pager = null, $order = null, $objectIds = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "reportTitle", $reportTitle);
     $this->client->addParam($kparams, "reportText", $reportText);
     $this->client->addParam($kparams, "headers", $headers);
     $this->client->addParam($kparams, "reportType", $reportType);
     $this->client->addParam($kparams, "reportInputFilter", $reportInputFilter->toParams());
     $this->client->addParam($kparams, "dimension", $dimension);
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->addParam($kparams, "order", $order);
     $this->client->addParam($kparams, "objectIds", $objectIds);
     $this->client->queueServiceActionCall("report", "getUrlForReportAsCsv", 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,代碼行數:24,代碼來源:ReportService.php

示例15: convertPptToSwf

 function convertPptToSwf($entryId)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->queueServiceActionCall("document", "convertPptToSwf", 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,代碼來源:DocumentService.php


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