function ARC_api::call_component in Taxonomy import/export via XML 6.2
Same name and namespace in other branches
- 5.2 arc/ARC_api.php \ARC_api::call_component()
- 5 arc/ARC_api.php \ARC_api::call_component()
- 6 arc/ARC_api.php \ARC_api::call_component()
24 calls to ARC_api::call_component()
File
- arc/
ARC_api.php, line 162
Class
Code
function call_component($name, $mthd, $args = "") {
$get_comp_mthd = "get_" . $name;
if (method_exists($this, $get_comp_mthd) && ($comp =& $this
->{$get_comp_mthd}())) {
if (method_exists($comp, $mthd)) {
return $comp
->{$mthd}($args);
}
$this
->error("Method '" . $mthd . "' does not exist in component '" . $name . "'.");
}
return $this
->get_default_error();
}