14 public static function getExporterClass(
$a_type)
19 global $objDefinition;
21 if($objDefinition->isPlugin(
$a_type))
23 $classname =
'il'.$objDefinition->getClassName(
$a_type).
'Exporter';
25 if(include_once
$location.
'/class.'.$classname.
'.php')
33 $comp = $objDefinition->getComponentForType(
$a_type);
34 $class = array_pop(explode(
"/", $comp));
35 $class =
"il".$class.
"Exporter";
41 if(include_once
"./".$comp.
"/classes/class.".$class.
".php")
50 public static function getComponentForExport(
$a_type)
55 global $objDefinition;
57 if($objDefinition->isPlugin(
$a_type))
59 return self::PLUGINS_DIR.
"/".
$a_type;
63 return $objDefinition->getComponentForType(
$a_type);
67 public static function getImporterClass($a_component)
72 global $objDefinition;
74 $parts = explode(
'/', $a_component);
75 $component_type = $parts[0];
76 $component = $parts[1];
78 if($component_type == self::PLUGINS_DIR &&
79 $objDefinition->isPlugin($component))
81 $classname =
'il'.$objDefinition->getClassName($component).
'Importer';
82 $location = $objDefinition->getLocation($component);
83 if(include_once
$location.
'/class.'.$classname.
'.php')
90 $class =
"il".$component.
"Importer";
91 if(include_once
"./".$a_component.
"/classes/class.".$class.
".php")
Factory for importer/exporter implementers.