| @@ 56-56 (lines=1) @@ | ||
| 53 | $oComponent = &$oEditorModel->getComponentObject($component); |
|
| 54 | if(!$oComponent->toBool()) return $oComponent; |
|
| 55 | ||
| 56 | if(!method_exists($oComponent, $method)) return new BaseObject(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component)); |
|
| 57 | ||
| 58 | //$output = call_user_method($method, $oComponent); |
|
| 59 | //$output = call_user_func(array($oComponent, $method)); |
|
| @@ 554-554 (lines=1) @@ | ||
| 551 | // Create an object of the component and execute |
|
| 552 | $class_path = sprintf('%scomponents/%s/', $this->module_path, $component); |
|
| 553 | $class_file = sprintf('%s%s.class.php', $class_path, $component); |
|
| 554 | if(!file_exists($class_file)) return new BaseObject(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component)); |
|
| 555 | // Create an object after loading the class file |
|
| 556 | require_once($class_file); |
|
| 557 | $oComponent = new $component($editor_sequence, $class_path); |
|