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


PHP ParseUtils::unmarshalArray方法代码示例

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


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

示例1: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->format = (string) $xml->format;
     $this->subject = (string) $xml->subject;
     $this->body = (string) $xml->body;
     $this->fromEmail = (string) $xml->fromEmail;
     $this->fromName = (string) $xml->fromName;
     if (!empty($xml->to)) {
         $this->to = \Kaltura\Client\ParseUtils::unmarshalObject($xml->to, "KalturaEmailNotificationRecipientProvider");
     }
     if (!empty($xml->cc)) {
         $this->cc = \Kaltura\Client\ParseUtils::unmarshalObject($xml->cc, "KalturaEmailNotificationRecipientProvider");
     }
     if (!empty($xml->bcc)) {
         $this->bcc = \Kaltura\Client\ParseUtils::unmarshalObject($xml->bcc, "KalturaEmailNotificationRecipientProvider");
     }
     if (!empty($xml->replyTo)) {
         $this->replyTo = \Kaltura\Client\ParseUtils::unmarshalObject($xml->replyTo, "KalturaEmailNotificationRecipientProvider");
     }
     if (count($xml->priority)) {
         $this->priority = (int) $xml->priority;
     }
     $this->confirmReadingTo = (string) $xml->confirmReadingTo;
     $this->hostname = (string) $xml->hostname;
     $this->messageID = (string) $xml->messageID;
     if (empty($xml->customHeaders)) {
         $this->customHeaders = array();
     } else {
         $this->customHeaders = \Kaltura\Client\ParseUtils::unmarshalArray($xml->customHeaders, "KalturaKeyValue");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:35,代码来源:EmailNotificationTemplate.php

示例2: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->playlistContent = (string) $xml->playlistContent;
     if (empty($xml->filters)) {
         $this->filters = array();
     } else {
         $this->filters = \Kaltura\Client\ParseUtils::unmarshalArray($xml->filters, "KalturaMediaEntryFilterForPlaylist");
     }
     if (count($xml->totalResults)) {
         $this->totalResults = (int) $xml->totalResults;
     }
     if (count($xml->playlistType)) {
         $this->playlistType = (int) $xml->playlistType;
     }
     if (count($xml->plays)) {
         $this->plays = (int) $xml->plays;
     }
     if (count($xml->views)) {
         $this->views = (int) $xml->views;
     }
     if (count($xml->duration)) {
         $this->duration = (int) $xml->duration;
     }
     $this->executeUrl = (string) $xml->executeUrl;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:29,代码来源:Playlist.php

示例3: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->message = (string) $xml->message;
     if (empty($xml->actions)) {
         $this->actions = array();
     } else {
         $this->actions = \Kaltura\Client\ParseUtils::unmarshalArray($xml->actions, "KalturaRuleAction");
     }
     if (empty($xml->conditions)) {
         $this->conditions = array();
     } else {
         $this->conditions = \Kaltura\Client\ParseUtils::unmarshalArray($xml->conditions, "KalturaCondition");
     }
     if (empty($xml->contexts)) {
         $this->contexts = array();
     } else {
         $this->contexts = \Kaltura\Client\ParseUtils::unmarshalArray($xml->contexts, "KalturaContextTypeHolder");
     }
     if (!empty($xml->stopProcessing)) {
         $this->stopProcessing = true;
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:26,代码来源:Rule.php

示例4: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->name = (string) $xml->name;
     $this->systemName = (string) $xml->systemName;
     $this->description = (string) $xml->description;
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->isDefault)) {
         $this->isDefault = (int) $xml->isDefault;
     }
     if (empty($xml->restrictions)) {
         $this->restrictions = array();
     } else {
         $this->restrictions = \Kaltura\Client\ParseUtils::unmarshalArray($xml->restrictions, "KalturaBaseRestriction");
     }
     if (!empty($xml->containsUnsuportedRestrictions)) {
         $this->containsUnsuportedRestrictions = true;
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:30,代码来源:AccessControl.php

示例5: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->distributionProfileId)) {
         $this->distributionProfileId = (int) $xml->distributionProfileId;
     }
     if (!empty($xml->distributionProfile)) {
         $this->distributionProfile = \Kaltura\Client\ParseUtils::unmarshalObject($xml->distributionProfile, "KalturaDistributionProfile");
     }
     if (count($xml->entryDistributionId)) {
         $this->entryDistributionId = (int) $xml->entryDistributionId;
     }
     if (!empty($xml->entryDistribution)) {
         $this->entryDistribution = \Kaltura\Client\ParseUtils::unmarshalObject($xml->entryDistribution, "KalturaEntryDistribution");
     }
     $this->remoteId = (string) $xml->remoteId;
     $this->providerType = (string) $xml->providerType;
     if (!empty($xml->providerData)) {
         $this->providerData = \Kaltura\Client\ParseUtils::unmarshalObject($xml->providerData, "KalturaDistributionJobProviderData");
     }
     $this->results = (string) $xml->results;
     $this->sentData = (string) $xml->sentData;
     if (empty($xml->mediaFiles)) {
         $this->mediaFiles = array();
     } else {
         $this->mediaFiles = \Kaltura\Client\ParseUtils::unmarshalArray($xml->mediaFiles, "KalturaDistributionRemoteMediaFile");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:31,代码来源:DistributionJobData.php

示例6: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->streamRemoteId = (string) $xml->streamRemoteId;
     $this->streamRemoteBackupId = (string) $xml->streamRemoteBackupId;
     if (empty($xml->bitrates)) {
         $this->bitrates = array();
     } else {
         $this->bitrates = \Kaltura\Client\ParseUtils::unmarshalArray($xml->bitrates, "KalturaLiveStreamBitrate");
     }
     $this->primaryBroadcastingUrl = (string) $xml->primaryBroadcastingUrl;
     $this->secondaryBroadcastingUrl = (string) $xml->secondaryBroadcastingUrl;
     $this->primaryRtspBroadcastingUrl = (string) $xml->primaryRtspBroadcastingUrl;
     $this->secondaryRtspBroadcastingUrl = (string) $xml->secondaryRtspBroadcastingUrl;
     $this->streamName = (string) $xml->streamName;
     $this->streamUrl = (string) $xml->streamUrl;
     $this->hlsStreamUrl = (string) $xml->hlsStreamUrl;
     $this->urlManager = (string) $xml->urlManager;
     $this->encodingIP1 = (string) $xml->encodingIP1;
     $this->encodingIP2 = (string) $xml->encodingIP2;
     $this->streamPassword = (string) $xml->streamPassword;
     $this->streamUsername = (string) $xml->streamUsername;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:26,代码来源:LiveStreamEntry.php

示例7: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->changedItems)) {
         $this->changedItems = array();
     } else {
         $this->changedItems = \Kaltura\Client\ParseUtils::unmarshalArray($xml->changedItems, "KalturaAuditTrailChangeItem");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:12,代码来源:AuditTrailChangeInfo.php

示例8: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->resources)) {
         $this->resources = array();
     } else {
         $this->resources = \Kaltura\Client\ParseUtils::unmarshalArray($xml->resources, "KalturaRemoteStorageResource");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:12,代码来源:RemoteStorageResources.php

示例9: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->emailRecipients)) {
         $this->emailRecipients = array();
     } else {
         $this->emailRecipients = \Kaltura\Client\ParseUtils::unmarshalArray($xml->emailRecipients, "KalturaEmailNotificationRecipient");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:12,代码来源:EmailNotificationStaticRecipientProvider.php

示例10: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->privileges)) {
         $this->privileges = array();
     } else {
         $this->privileges = \Kaltura\Client\ParseUtils::unmarshalArray($xml->privileges, "KalturaStringValue");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:12,代码来源:AuthenticatedCondition.php

示例11: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->xslt = (string) $xml->xslt;
     if (empty($xml->itemXpathsToExtend)) {
         $this->itemXpathsToExtend = array();
     } else {
         $this->itemXpathsToExtend = \Kaltura\Client\ParseUtils::unmarshalArray($xml->itemXpathsToExtend, "KalturaExtendingItemMrssParameter");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:13,代码来源:GenericXsltSyndicationFeed.php

示例12: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->columns = (string) $xml->columns;
     if (empty($xml->results)) {
         $this->results = array();
     } else {
         $this->results = \Kaltura\Client\ParseUtils::unmarshalArray($xml->results, "KalturaString");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:13,代码来源:ReportResponse.php

示例13: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->validationError = (string) $xml->validationError;
     if (empty($xml->assetDistributionConditions)) {
         $this->assetDistributionConditions = array();
     } else {
         $this->assetDistributionConditions = \Kaltura\Client\ParseUtils::unmarshalArray($xml->assetDistributionConditions, "KalturaAssetDistributionCondition");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:13,代码来源:AssetDistributionRule.php

示例14: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->provisioningParams)) {
         $this->provisioningParams = array();
     } else {
         $this->provisioningParams = \Kaltura\Client\ParseUtils::unmarshalArray($xml->provisioningParams, "KalturaKeyValue");
     }
     $this->userName = (string) $xml->userName;
     $this->password = (string) $xml->password;
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:14,代码来源:VelocixProvisionJobData.php

示例15: __construct

 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->addRemoveType)) {
         $this->addRemoveType = (int) $xml->addRemoveType;
     }
     if (empty($xml->categoryIds)) {
         $this->categoryIds = array();
     } else {
         $this->categoryIds = \Kaltura\Client\ParseUtils::unmarshalArray($xml->categoryIds, "KalturaIntegerValue");
     }
 }
开发者ID:klvtz,项目名称:kaltura-client53,代码行数:15,代码来源:ModifyCategoriesObjectTask.php


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