public static function getExtendedTypes($baseClass, $enumValue) { if ($baseClass == assetPeer::OM_CLASS && $enumValue == assetType::THUMBNAIL) { return array(ThumbCuePointPlugin::getAssetTypeCoreValue(timedThumbAssetType::TIMED_THUMB_ASSET)); } return null; }
public function validateTimedThumbAssetId() { $timedThumb = assetPeer::retrieveById($this->assetId); if (!$timedThumb) { throw new KalturaAPIException(KalturaErrors::ASSET_ID_NOT_FOUND, $this->assetId); } if ($timedThumb->getType() != ThumbCuePointPlugin::getAssetTypeCoreValue(timedThumbAssetType::TIMED_THUMB_ASSET)) { throw new KalturaAPIException(KalturaErrors::THUMB_ASSET_ID_IS_NOT_TIMED_THUMB_TYPE, $this->assetId); } }
public function applyDefaultValues() { parent::applyDefaultValues(); $this->setType(ThumbCuePointPlugin::getAssetTypeCoreValue(timedThumbAssetType::TIMED_THUMB_ASSET)); }