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