Ejemplo n.º 1
0
 public static function getExtendedTypes($baseClass, $enumValue)
 {
     if ($baseClass == assetPeer::OM_CLASS && $enumValue == assetType::THUMBNAIL) {
         return array(ThumbCuePointPlugin::getAssetTypeCoreValue(timedThumbAssetType::TIMED_THUMB_ASSET));
     }
     return null;
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public function applyDefaultValues()
 {
     parent::applyDefaultValues();
     $this->setType(ThumbCuePointPlugin::getAssetTypeCoreValue(timedThumbAssetType::TIMED_THUMB_ASSET));
 }