fonction loaded pour les plugins
[mtweb] / mw / env / modules / mw_env_plugins.php
index fefbd04..b9fe042 100644 (file)
       if(method_exists($impl, $method)) return $impl->$method($this);
     }
 
+    function loaded_plugins(){
+      if($plugins = $this->plugins()){
+        foreach($plugins as $plugin_name => $plugin){
+          $plugin["impl"]->loaded($this);
+        }
+      }
+    }
+
     # ---------------------------------------------------------------------------------
     #                                                                              impl
     #
       return "";
     }
 
+    function loaded($env){
+    }
+
     function install($env){
       return true;
     }