Class ilExtractorFactory.
More...
◆ getExtractorByEventDescriptor()
static ilExtractorFactory::getExtractorByEventDescriptor |
( |
|
$component | ) |
|
|
static |
- Parameters
-
- Returns
- ilExtractor|stdClass
Definition at line 18 of file class.ilExtractorFactory.php.
Referenced by ilWorkflowEngine\__construct().
20 require_once
'./Services/WorkflowEngine/classes/extractors/class.ilExtractedParams.php';
24 $extractor_class_name =
'il' . str_replace(
'/',
'',$component) .
'Extractor';
25 $final_path =
'./' . $component .
'/classes/';
26 $final_fullpath = $final_path .
'class.' . $extractor_class_name .
'.php';
28 $transition_fullpath =
'./Services/WorkflowEngine/classes/extractors/class.'.$extractor_class_name.
'.php';
30 if( file_exists( $final_fullpath ) )
32 require_once $final_fullpath;
34 else if( file_exists( $transition_fullpath) )
36 require_once $transition_fullpath;
39 if( class_exists($extractor_class_name,
false))
41 $extractor =
new $extractor_class_name($params_object);
46 return new stdClass();
The documentation for this class was generated from the following file: