/**
  * (non-PHPdoc)
  * @see tao_actions_Import::getAvailableImportHandlers()
  */
 protected function getAvailableImportHandlers()
 {
     $returnValue = parent::getAvailableImportHandlers();
     // disabled due to possible security exploit that allows execution of php data in qti test driver
     // $returnValue[] = new taoDelivery_models_classes_import_AssemblyImportHandler();
     return $returnValue;
 }
 /**
  */
 public function editMedia()
 {
     $id = null;
     if ($this->hasRequestParameter('instanceUri')) {
         $id = $this->getRequestParameter('instanceUri');
     } else {
         $id = $this->getRequestParameter('id');
     }
     $this->setAvailableImportHandlers($id);
     parent::index();
 }
예제 #3
0
 /**
  * (non-PHPdoc)
  * @see tao_actions_Import::getAvailableImportHandlers()
  */
 public function getAvailableImportHandlers()
 {
     $returnValue = parent::getAvailableImportHandlers();
     foreach (array_keys($returnValue) as $key) {
         if ($returnValue[$key] instanceof \tao_models_classes_import_CsvImporter) {
             $importer = new CsvImporter();
             $importer->setValidators($this->getValidators());
             $returnValue[$key] = $importer;
         }
     }
     return $returnValue;
 }
 protected function getAvailableImportHandlers()
 {
     $returnValue = parent::getAvailableImportHandlers();
     $itemModelClass = new core_kernel_classes_Class(TAO_ITEM_MODEL_CLASS);
     foreach ($itemModelClass->getInstances() as $model) {
         $impl = taoItems_models_classes_ItemsService::singleton()->getItemModelImplementation($model);
         if (in_array('tao_models_classes_import_ImportProvider', class_implements($impl))) {
             foreach ($impl->getImportHandlers() as $handler) {
                 array_unshift($returnValue, $handler);
             }
         }
     }
     return $returnValue;
 }