Exemple #1
0
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;
}
Exemple #2
0
function newdao($module)
{
    load_dao($module);
    $className = exportClass($module, "DAO");
    return Container::getInstance()->newObj($module, $className, true);
}