public attr / function, constructeurs __construct
[mtweb] / mw / env / modules / mw_env_helpers.php
index 5b78601..0492f59 100644 (file)
@@ -2,9 +2,9 @@
 
   class mw_env_helpers extends mw_env{
 
-    var $helpers;
+    public $helpers;
 
-    function init_helpers(){
+    public function init_helpers(){
       $this->helpers = false;
       $helpers_files = array();
       if(($plugins = $this->plugins()) !== false){
@@ -56,7 +56,7 @@
       return true;
     }
 
-    function helper($helper_name){
+    public function helper($helper_name){
       if(!isset($this->helpers)) $this->init_helpers();
       if($this->helpers === false || !isset($this->helpers[$helper_name])) return false;
       if(!isset($this->helpers[$helper_name]["file"])) return false;
@@ -64,7 +64,7 @@
       return false;
     }
 
-    function init_helper($helper_name){
+    public function init_helper($helper_name){
       if(!isset($this->helpers[$helper_name]["impl"])){
         if(!class_exists($helper_name)){
           if(
 
   }
 
-  class mw_helper{
+  // -------------------------------------------------------------------------------------------
+  //                                                                             class mw_helper
+  //
 
-    var $env;
+  abstract class mw_helper{
 
-    function set_env(&$env){
+    public $env;
+
+    public function set_env(&$env){
       $this->env = &$env;
     }
 
-    function env(){
+    public function env(){
       return $this->env;
     }
 
   }
-
-?>
\ No newline at end of file