示例#1
0
 static function install($module)
 {
     $path = sysPATH . $module . '/';
     is_file($path . '/dbscheme.xml') && dbScheme::check(file_get_contents($path . 'dbscheme.xml'));
     is_file($path . 'install.php') && (require_once $path . 'install.php');
     self::setInstalled($module);
 }
示例#2
0
 static function install($module)
 {
     $path = sysPATH . $module . '/';
     if (is_file($path . '/dbscheme.xml')) {
         require_once sysPATH . 'core/lib/db/scheme.php';
         dbScheme::check(file_get_contents($path . 'dbscheme.xml'));
     }
     if (is_file($path . 'install.php')) {
         require_once $path . 'install.php';
     }
     self::setInstalled($module);
 }