public function fromObject($dbObject)
 {
     /* @var $dbObject kEmailNotificationStaticRecipientJobData */
     parent::fromObject($dbObject);
     $this->setProviderType();
     $this->emailRecipients = KalturaKeyValueArray::fromKeyValueArray($dbObject->getEmailRecipients());
 }
 public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /* @var $dbObject kEmailNotificationStaticRecipientJobData */
     parent::doFromObject($dbObject, $responseProfile);
     $this->setProviderType();
     $this->emailRecipients = KalturaKeyValueArray::fromKeyValueArray($dbObject->getEmailRecipients());
 }
 public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($source_object, $responseProfile);
     if ($this->shouldGet('provisioningParams', $responseProfile)) {
         $this->provisioningParams = KalturaKeyValueArray::fromKeyValueArray($source_object->getProvisioningParams());
     }
 }
예제 #4
0
 public static function fromKeyValueArray(array $pairs = null)
 {
     $pairsArray = new KalturaKeyValueArray();
     if ($pairs && is_array($pairs)) {
         foreach ($pairs as $key => $value) {
             if (is_array($value)) {
                 $pairsArray->appendFromArray($value, "{$key}.");
                 continue;
             }
             $pairObject = new KalturaKeyValue();
             $pairObject->key = $key;
             $pairObject->value = $value;
             $pairsArray[] = $pairObject;
         }
     }
     return $pairsArray;
 }
 public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /** @var $dbObject kAssetPropertiesCompareCondition */
     parent::doFromObject($dbObject, $responseProfile);
     if ($this->shouldGet('properties', $responseProfile)) {
         $this->properties = KalturaKeyValueArray::fromKeyValueArray($dbObject->getProperties());
     }
 }
 public static function fromDbArray(array $arr, KalturaDetachedResponseProfile $responseProfile = null)
 {
     $ret = new KalturaPlayerDeliveryTypesArray();
     foreach ($arr as $id => $item) {
         $obj = new KalturaPlayerDeliveryType();
         $obj->id = $id;
         $obj->fromArray($item);
         $obj->enabledByDefault = (bool) $obj->enabledByDefault;
         if (isset($item['flashvars'])) {
             $obj->flashvars = KalturaKeyValueArray::fromDbArray($item['flashvars']);
         }
         $ret[] = $obj;
     }
     return $ret;
 }
예제 #7
0
 public function doFromObject($partner, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($partner);
     $this->name = kString::stripUtf8InvalidChars($this->name);
     $this->description = kString::stripUtf8InvalidChars($this->description);
     $this->adminName = kString::stripUtf8InvalidChars($this->adminName);
     $this->additionalParams = KalturaKeyValueArray::fromKeyValueArray($partner->getAdditionalParams());
     if (!$this->host) {
         $this->host = null;
     }
     if (!$this->cdnHost) {
         $this->cdnHost = null;
     }
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
     $this->urlManagerParams = KalturaKeyValueArray::fromKeyValueArray($source_object->getUrlManagerParams());
     $this->pathManagerParams = KalturaKeyValueArray::fromKeyValueArray($source_object->getPathManagerParams());
 }
 protected function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /* @var $dbObject kEventNotificationDispatchJobData */
     parent::doFromObject($dbObject, $responseProfile);
     $this->contentParameters = KalturaKeyValueArray::fromKeyValueArray($dbObject->getContentParameters());
 }
 public function fromPartner(Partner $partner)
 {
     parent::fromObject($partner);
     $this->name = kString::stripUtf8InvalidChars($this->name);
     $this->description = kString::stripUtf8InvalidChars($this->description);
     $this->adminName = kString::stripUtf8InvalidChars($this->adminName);
     $this->additionalParams = KalturaKeyValueArray::fromKeyValueArray($partner->getAdditionalParams());
     return $this;
 }
예제 #11
0
 public function fromPartner(Partner $partner)
 {
     parent::fromObject($partner);
     $this->additionalParams = KalturaKeyValueArray::fromKeyValueArray($this->additionalParams);
     return $this;
 }
 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($dbObject)
 {
     /* @var $dbObject kEmailNotificationDispatchJobData */
     parent::fromObject($dbObject);
     $this->to = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getTo());
     $this->cc = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getCc());
     $this->bcc = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getBcc());
     $this->replyTo = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getReplyTo());
     $this->customHeaders = KalturaKeyValueArray::fromKeyValueArray($dbObject->getCustomHeaders());
     $this->contentParameters = KalturaKeyValueArray::fromKeyValueArray($dbObject->getContentParameters());
 }
예제 #14
0
 public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($source_object, $responseProfile);
     if ($this->shouldGet('pathManagerParams', $responseProfile)) {
         $this->pathManagerParams = KalturaKeyValueArray::fromKeyValueArray($source_object->getPathManagerParams());
     }
     if ($this->shouldGet('deliveryProfileIds', $responseProfile)) {
         $this->deliveryProfileIds = KalturaKeyValueArray::fromKeyValueArray($source_object->getDeliveryProfileIds());
     }
 }
 public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /* @var $dbObject kEmailNotificationDispatchJobData */
     parent::doFromObject($dbObject, $responseProfile);
     $this->to = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getTo());
     $this->cc = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getCc());
     $this->bcc = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getBcc());
     $this->replyTo = KalturaEmailNotificationRecipientJobData::getDataInstance($dbObject->getReplyTo());
     $this->customHeaders = KalturaKeyValueArray::fromKeyValueArray($dbObject->getCustomHeaders());
 }