function daocall($dao, $func, $args) { load_dao($dao); $class = ucfirst($dao) . "Dao"; if (!class_exists($class)) { Umsg("Dao:" . $dao . "无效"); } $rs = BaseCall("ctl", $class, $func, $args); return $rs; }
function newdao($module) { load_dao($module); $className = exportClass($module, "DAO"); return Container::getInstance()->newObj($module, $className, true); }