public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { /* @var $dbObject HttpNotificationTemplate */ parent::doFromObject($dbObject, $responseProfile); if ($this->shouldGet('data', $responseProfile) && $dbObject->getData()) { $this->data = KalturaHttpNotificationData::getInstance($dbObject->getData()); } }
public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { /* @var $dbObject EmailNotificationTemplate */ parent::doFromObject($dbObject, $responseProfile); if ($this->shouldGet('to', $responseProfile) && $dbObject->getTo()) { $this->to = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getTo()); } if ($this->shouldGet('cc', $responseProfile) && $dbObject->getCc()) { $this->cc = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getCc()); } if ($this->shouldGet('bcc', $responseProfile) && $dbObject->getBcc()) { $this->bcc = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getBcc()); } if ($this->shouldGet('replyTo', $responseProfile) && $dbObject->getReplyTo()) { $this->replyTo = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getReplyTo()); } }