DB = new DB($conf->WFdbhost,$conf->WFdbname,$conf->WFdbuser,$conf->WFdbpass,null,$conf->WFdbport); $erp = new erpAPI($app); $app->erp = $erp; /* Datenbank aufbauen */ $cacheClasses[] = 'Cache_Projekt'; if ($cacheClasses) { foreach ($cacheClasses as $cacheClass) { $class = new $cacheClass($app); $class->checkCacheRows(); } } unset($cacheClasses); unset($class); $cacheTodos = $app->DB->SelectArr(' SELECT * FROM cache '); if ($cacheTodos) { foreach ($cacheTodos as $cacheTodo) { unset($class); unset($function); $class = 'Cache_' . ucfirst($cacheTodo['table']); $function = Cache::getMethodName($cacheTodo); if (class_exists($class)) { $class = new $class($app, $cacheTodo); if (method_exists($class, $function)) { call_user_func(array($class, $function)); $class->save(); } } } } echo "\r\n"; echo "\r\n"; echo "\r\n"; echo "ENDE CACHE GENERATOR\r\n";