public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($dbObject, $responseProfile); /* @var $dbObject kEmailNotificationCategoryRecipientProvider */ $categoryIdFieldType = get_class($dbObject->getCategoryId()); KalturaLog::info("Retrieving API object for categoryId fild of type [{$categoryIdFieldType}]"); switch ($categoryIdFieldType) { case 'kObjectIdField': $this->categoryId = new KalturaObjectIdField(); break; case 'kEvalStringField': $this->categoryId = new KalturaEvalStringField(); break; case 'kStringValue': $this->categoryId = new KalturaStringValue(); break; default: $this->categoryId = KalturaPluginManager::loadObject('KalturaStringValue', $categoryIdFieldType); break; } if ($this->categoryId) { $this->categoryId->fromObject($dbObject->getCategoryId()); } if ($dbObject->getCategoryUserFilter()) { $this->categoryUserFilter = new KalturaCategoryUserProviderFilter(); $this->categoryUserFilter->fromObject($dbObject->getCategoryUserFilter()); } }
public function toObject($dbObject = null, $propertiesToSkip = array()) { if (is_null($dbObject)) { $dbObject = new kEmailNotificationStaticRecipientProvider(); } return parent::toObject($dbObject, $propertiesToSkip); }
public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($dbObject, $responseProfile); if ($dbObject->getFilter()) { $this->filter = new KalturaUserFilter(); $this->filter->fromObject($dbObject->getFilter()); } }
public function fromObject($dbObject) { parent::fromObject($dbObject); if ($dbObject->getFilter()) { $this->filter = new KalturaUserFilter(); $this->filter->fromObject($dbObject->getFilter()); } }
public function fromObject($dbObject) { /* @var $dbObject EmailNotificationTemplate */ parent::fromObject($dbObject); if ($dbObject->getTo()) { $this->to = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getTo()); } if ($dbObject->getCc()) { $this->cc = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getCc()); } if ($dbObject->getBcc()) { $this->bcc = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getBcc()); } if ($dbObject->getReplyTo()) { $this->replyTo = KalturaEmailNotificationRecipientProvider::getProviderInstance($dbObject->getReplyTo()); } }
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()); } }