public function toObject($dbConvartableJobData = null, $props_to_skip = array()) { if (is_null($dbConvartableJobData)) { $dbConvartableJobData = new kConvartableJobData(); } if ($this->flavorParamsOutput instanceof KalturaFlavorParams) { $dbFlavorParams = new flavorParamsOutput(); $dbFlavorParams = $this->flavorParamsOutput->toObject($dbFlavorParams); $dbConvartableJobData->setFlavorParamsOutput($dbFlavorParams); } return parent::toObject($dbConvartableJobData, $props_to_skip); }
public static function fromDbArray($arr) { $newArr = new KalturaFlavorParamsOutputArray(); if ($arr == null) { return $newArr; } foreach ($arr as $obj) { $nObj = new KalturaFlavorParamsOutput(); $nObj->fromObject($obj); $newArr[] = $nObj; } return $newArr; }
public static function fromDbArray($arr, KalturaDetachedResponseProfile $responseProfile = null) { $newArr = new KalturaFlavorParamsOutputArray(); if ($arr == null) { return $newArr; } foreach ($arr as $obj) { $nObj = new KalturaFlavorParamsOutput(); $nObj->fromObject($obj, $responseProfile); $newArr[] = $nObj; } return $newArr; }
public function fromObject($dbPdfFlavorParamsOutput) { parent::fromObject($dbPdfFlavorParamsOutput); if ($dbPdfFlavorParamsOutput->getReadonly() == true) { $this->readonly = 1; } else { $this->readonly = 0; } }
public function toObject($object = null, $skip = array()) { if (is_null($object)) { $object = new WidevineFlavorParamsOutput(); } parent::toObject($object, $skip); $object->setType(WidevinePlugin::getAssetTypeCoreValue(WidevineAssetType::WIDEVINE_FLAVOR)); return $object; }
public function doFromObject($dbPdfFlavorParamsOutput, KalturaDetachedResponseProfile $responseProfile = null) { parent::doFromObject($dbPdfFlavorParamsOutput, $responseProfile); if ($this->shouldGet('readonly', $responseProfile)) { if ($dbPdfFlavorParamsOutput->getReadonly() == true) { $this->readonly = 1; } else { $this->readonly = 0; } } }
public function getMapBetweenObjects() { $map = array_merge(parent::getMapBetweenObjects(), self::$map_between_objects); foreach (self::$skip_attributes as $skip_attribute) { if (isset($map[$skip_attribute])) { unset($map[$skip_attribute]); } $key = array_search($skip_attribute, $map); if ($key !== false) { unset($map[$key]); } } return $map; }
public function getMapBetweenObjects() { return array_merge(parent::getMapBetweenObjects(), self::$map_between_objects); }