function addmoduletodependency($modulename, $type, $dir) { if ($type == COMPONENT_HELPER) { includeeasyhelper($modulename); } else { if ($type == COMPONENT_LIBRARY || $type == COMPONENT_CONTROLLER || $type == COMPONENT_HANDLER) { includeeasymodule($dir . '/', $modulename); if (class_exists($modulename)) { $rc = new ReflectionClass($modulename); //echo $dir . '/', $modulename.' :'.$modulename.' rc:'.$rc.'<br>'; if (!$rc->isAbstract()) { $lib = new $modulename(); unset($lib); } unset($rc); } } } }
function includeeasyhandler($name) { return includeeasymodule('libraries/handlers/', $name); }