public function __construct($partnerId, $providerType, Kaltura_Client_ContentDistribution_Type_DistributionProfile $distributionProfile = null) { $this->partnerId = $partnerId; $this->providerType = $providerType; $this->distributionProfile = $distributionProfile; parent::__construct(); }
protected function populateForm(Form_DistributionConfiguration $form, Kaltura_Client_ContentDistribution_Type_DistributionProfile $distributionProfile, Kaltura_Client_Type_FlavorParamsListResponse $flavorParamsResponse) { $optionalFlavorParamsIds = array(); $requiredFlavorParamsIds = array(); if (!is_null($distributionProfile->optionalFlavorParamsIds) && strlen($distributionProfile->optionalFlavorParamsIds)) { $optionalFlavorParamsIds = explode(',', $distributionProfile->optionalFlavorParamsIds); } if (!is_null($distributionProfile->requiredFlavorParamsIds) && strlen($distributionProfile->requiredFlavorParamsIds)) { $requiredFlavorParamsIds = explode(',', $distributionProfile->requiredFlavorParamsIds); } $form->addFlavorParamsFields($flavorParamsResponse, $optionalFlavorParamsIds, $requiredFlavorParamsIds); if (is_array($distributionProfile->requiredThumbDimensions)) { foreach ($distributionProfile->requiredThumbDimensions as $dimensions) { $form->addThumbDimensions($dimensions, true); } } if (is_array($distributionProfile->optionalThumbDimensions)) { foreach ($distributionProfile->optionalThumbDimensions as $dimensions) { $form->addThumbDimensions($dimensions, false); } } $form->addThumbDimensionsForm(); $form->addDistributionAssetRules($distributionProfile->optionalAssetDistributionRules, $distributionProfile->requiredAssetDistributionRules); }
public function getObject($objectType, array $properties, $add_underscore = true, $include_empty_fields = false) { $this->properties = $properties; return parent::getObject($objectType, $properties, $add_underscore, $include_empty_fields); }
public function __construct($partnerId, $providerType) { $this->partnerId = $partnerId; $this->providerType = $providerType; parent::__construct(); }