implementation sgbd herite de mw_sgbd
[mtweb] / mw / app / data / modules / share / mw_data_sgbds.php
index db90855..c40af56 100644 (file)
@@ -2,7 +2,7 @@
 
   class mw_data_sgbds extends mw_data{
 
-    function sgbds(){
+    public function sgbds(){
       $env = $this->env();
       $sgbds = array();
       $impls_dir = $env->app_file("data/impl");
             require_once $impls_dir."/".$impl_file;
             if(class_exists($class_name = substr($impl_file, 0, -4))){
               if(
-                    method_exists($class_name, "sgbd_name")
+                    method_exists($class_name, "name")
                 &&  method_exists($class_name, "extention_ok")
               ){
-                $impl = new $class_name();
+                $impl = new $class_name($env);
                 if($impl->extention_ok($env)) $sgbds[$class_name] = $impl;
               }
             }
@@ -33,5 +33,3 @@
     }
 
   }
-
-?>
\ No newline at end of file