public function toObject($object = null, $skip = array())
 {
     if (is_null($object)) {
         $object = new AvnDistributionProfile();
     }
     return parent::toObject($object, $skip);
 }
 public function toObject($object = null, $skip = array())
 {
     /* @var $object SynacorHboDistributionProfile */
     if (is_null($object)) {
         $object = new SynacorHboDistributionProfile();
     }
     $object = parent::toObject($object, $skip);
     return $object;
 }
 public function toObject($object = null, $skip = array())
 {
     /* @var $object UverseClickToOrderDistributionProfile */
     if (is_null($object)) {
         $object = new UverseClickToOrderDistributionProfile();
     }
     $object = parent::toObject($object, $skip);
     return $object;
 }
 public function validateForInsert($propertiesToSkip = array())
 {
     $partnerId = kCurrentContext::getCurrentPartnerId();
     $partner = PartnerPeer::retrieveByPK($partnerId);
     if (!$partner) {
         throw new KalturaAPIException(KalturaErrors::PARTNER_NOT_FOUND, $partnerId);
     }
     if (!$partner->getPluginEnabled(FreewheelGenericDistributionPlugin::DEPENDENTS_ON_PLUGIN_NAME_CUE_POINT)) {
         throw new KalturaAPIException(KalturaErrors::PLUGIN_NOT_AVAILABLE_FOR_PARTNER, FreewheelGenericDistributionPlugin::DEPENDENTS_ON_PLUGIN_NAME_CUE_POINT, $partnerId);
     }
     return parent::validateForInsert($propertiesToSkip);
 }
 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 toObject($object = null, $skip = array())
 {
     /* @var $object ComcastMrssDistributionProfile */
     if (is_null($object)) {
         $object = new ComcastMrssDistributionProfile();
     }
     $object = parent::toObject($object, $skip);
     $array = array();
     if ($this->cPlatformTvSeries instanceof KalturaKeyValueArray) {
         foreach ($this->cPlatformTvSeries as $keyVal) {
             /* @var $keyVal KalturaKeyValue */
             $array[$keyVal->key] = $keyVal->value;
         }
     }
     $object->setcPlatformTvSeries($array);
     return $object;
 }
 public function getMapBetweenObjects()
 {
     return array_merge(parent::getMapBetweenObjects(), self::$map_between_objects);
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
 }
 public function toObject($dbObject = null, $skip = array())
 {
     if (is_null($dbObject)) {
         return null;
     }
     return parent::toObject($dbObject, $skip);
 }
 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());
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
     $this->seriesAdditionalCategories = KalturaStringArray::fromStringArray($source_object->getSeriesAdditionalCategories());
 }