public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($dbObject, $responseProfile); /* @var $dbObject kExtendingItemMrssParameter */ if ($this->shouldGet('identifier', $responseProfile)) { $identifierType = get_class($dbObject->getIdentifier()); KalturaLog::info("Creating identifier for DB identifier type {$identifierType}"); switch ($identifierType) { case 'kEntryIdentifier': $this->identifier = new KalturaEntryIdentifier(); break; case 'kCategoryIdentifier': $this->identifier = new KalturaCategoryIdentifier(); } if ($this->identifier) { $this->identifier->fromObject($dbObject->getIdentifier()); } } }
public function getMapBetweenObjects() { return array_merge(parent::getMapBetweenObjects(), self::$map_between_objects); }