protected function doFromObject($distributionProfile, KalturaDetachedResponseProfile $responseProfile = null) { /* @var $distributionProfile YoutubeApiDistributionProfile */ parent::doFromObject($distributionProfile, $responseProfile); $appId = YoutubeApiDistributionPlugin::GOOGLE_APP_ID; $authConfig = kConf::get($appId, 'google_auth', null); $this->googleClientId = isset($authConfig['clientId']) ? $authConfig['clientId'] : null; $this->googleClientSecret = isset($authConfig['clientSecret']) ? $authConfig['clientSecret'] : null; $tokenData = $distributionProfile->getGoogleOAuth2Data(); if ($tokenData) { $this->googleTokenData = json_encode($tokenData); } }
public function doFromObject($sourceObject, KalturaDetachedResponseProfile $responseProfile = null) { /* @var $sourceObject ComcastMrssDistributionProfile */ parent::doFromObject($sourceObject, $responseProfile); $keyValArray = new KalturaKeyValueArray(); $array = $sourceObject->getcPlatformTvSeries(); if (is_array($array)) { foreach ($array as $key => $val) { $keyVal = new KalturaKeyValue(); $keyVal->key = $key; $keyVal->value = $val; $keyValArray[] = $keyVal; } } $this->cPlatformTvSeries = $keyValArray; }
public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($source_object, $responseProfile); $this->seriesAdditionalCategories = KalturaStringArray::fromStringArray($source_object->getSeriesAdditionalCategories()); }
public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($source_object, $responseProfile); /* @var $source_object CrossKalturaDistributionProfile */ $this->mapAccessControlProfileIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getMapAccessControlProfileIds()); $this->mapConversionProfileIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getMapConversionProfileIds()); $this->mapMetadataProfileIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getMapMetadataProfileIds()); $this->mapStorageProfileIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getMapStorageProfileIds()); $this->mapFlavorParamsIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getMapFlavorParamsIds()); $this->mapThumbParamsIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getMapThumbParamsIds()); $this->mapCaptionParamsIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getMapCaptionParamsIds()); }