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 function calculatePriority(BatchJob $batchJob) { if ($this->priority == 0) { $flavorParamsId = $this->getFlavorParamsOutput()->getFlavorParamsId(); $fpcp = flavorParamsConversionProfilePeer::retrieveByFlavorParamsAndConversionProfile($flavorParamsId, $this->conversionProfileId); if (!is_null($fpcp) && $fpcp->getPriority() != 0) { $this->priority = $fpcp->getPriority(); } else { $this->priority = parent::calculatePriority($batchJob); } } return $this->priority; }