public static function dependsOn()
 {
     $metadataVersion = new KalturaVersion(self::METADATA_PLUGIN_VERSION_MAJOR, self::METADATA_PLUGIN_VERSION_MINOR, self::METADATA_PLUGIN_VERSION_BUILD);
     $metadataDependency = new KalturaDependency(self::METADATA_PLUGIN_NAME, $metadataVersion);
     $cuePointDependency = new KalturaDependency(CuePointPlugin::getPluginName());
     return array($metadataDependency, $cuePointDependency);
 }
示例#2
0
 public static function dependsOn()
 {
     $cuePointDependency = new KalturaDependency(CuePointPlugin::getPluginName());
     $quizDependency = new KalturaDependency(QuizPlugin::getPluginName());
     return array($cuePointDependency, $quizDependency);
 }
示例#3
0
 /**
  * return field name as appears in index schema
  * @param string $fieldName
  */
 public static function getSearchFieldName($fieldName)
 {
     if ($fieldName == self::SEARCH_FIELD_DATA) {
         return 'plugins_data';
     }
     return CuePointPlugin::getPluginName() . '_' . $fieldName;
 }
 /**
  * Check which server plugins should be used
  * @param KalturaCrossKalturaDistributionProfile $distributionProfile
  * @throws Exception
  */
 protected function initPlugins(KalturaCrossKalturaDistributionProfile $distributionProfile)
 {
     // check if should distribute caption assets
     $this->distributeCaptions = false;
     if ($distributionProfile->distributeCaptions == true) {
         if (class_exists('CaptionPlugin') && class_exists('KalturaCaptionClientPlugin') && KalturaPluginManager::getPluginInstance(CaptionPlugin::getPluginName())) {
             $this->distributeCaptions = true;
         } else {
             throw new Exception('Missing CaptionPlugin');
         }
     }
     // check if should distribute cue points
     $this->distributeCuePoints = false;
     if ($distributionProfile->distributeCuePoints == true) {
         if (class_exists('CuePointPlugin') && class_exists('KalturaCuePointClientPlugin') && KalturaPluginManager::getPluginInstance(CuePointPlugin::getPluginName())) {
             $this->distributeCuePoints = true;
         } else {
             throw new Exception('Missing CuePointPlugin');
         }
     }
 }
 public static function dependsOn()
 {
     $bulkUploadXmlDependency = new KalturaDependency(self::BULK_UPLOAD_XML_PLUGIN_NAME);
     $cuePointDependency = new KalturaDependency(CuePointPlugin::getPluginName());
     return array($bulkUploadXmlDependency, $cuePointDependency);
 }