Exemplo n.º 1
0
 public function fromObject($entry)
 {
     parent::fromObject($entry);
     if ($entry->getEditorType() == "kalturaAdvancedEditor" || $entry->getEditorType() == "Keditor") {
         $this->editorType = KalturaEditorType::ADVANCED;
     } else {
         $this->editorType = KalturaEditorType::SIMPLE;
     }
 }
Exemplo n.º 2
0
 public function fromObject($entry)
 {
     parent::fromObject($entry);
     $reflect = new ReflectionClass('KalturaSourceType');
     $constants = $reflect->getConstants();
     if (!in_array($entry->getSource(), $constants) || $entry->getSource() == KalturaSourceType::SEARCH_PROVIDER) {
         $this->sourceType = KalturaSourceType::SEARCH_PROVIDER;
         $this->searchProviderType = $entry->getSource();
     } else {
         $this->sourceType = $entry->getSource();
         $this->searchProviderType = null;
     }
 }
 public function fromObject($entry)
 {
     parent::fromObject($entry);
     $this->mediaDate = $entry->getMediaDate(null);
     $reflect = KalturaTypeReflectorCacher::get('KalturaSourceType');
     $constants = $reflect->getConstantsValues();
     $sourceApi = kPluginableEnumsManager::coreToApi('EntrySourceType', $entry->getSource());
     if (!in_array($sourceApi, $constants) || $sourceApi == EntrySourceType::SEARCH_PROVIDER) {
         $this->sourceType = KalturaSourceType::SEARCH_PROVIDER;
         $this->searchProviderType = $sourceApi;
     } else {
         $this->sourceType = $sourceApi;
         $this->searchProviderType = null;
     }
 }