function ARC_api::load_code in Taxonomy import/export via XML 6.2
Same name and namespace in other branches
- 5.2 arc/ARC_api.php \ARC_api::load_code()
- 5 arc/ARC_api.php \ARC_api::load_code()
- 6 arc/ARC_api.php \ARC_api::load_code()
1 call to ARC_api::load_code()
File
- arc/
ARC_api.php, line 138
Class
Code
function load_code($cls_or_fnc = "") {
$path = $this->inc_path . $cls_or_fnc . ".php";
if (class_exists($cls_or_fnc) || function_exists($cls_or_fnc)) {
return true;
}
if (!file_exists($path)) {
return $this
->error("Could not find '" . $path . "'.");
}
include $path;
return true;
}