X-Git-Url: http://git.dj3c1t.com/?p=mtweb;a=blobdiff_plain;f=mw%2Fenv%2Fmodules%2Fmw_env_helpers.php;fp=mw%2Fenv%2Fmodules%2Fmw_env_helpers.php;h=0492f59bdc86686dbdea6dc50e61d5c435633dfc;hp=5b78601bca02ee76b8315155fd7d1c3cdf32b4e5;hb=5abc9d5fca28ef86dee6148bb96780d1a7b670f3;hpb=ed558d720ebf6985290c99297f5b1d2c86d1f60a diff --git a/mw/env/modules/mw_env_helpers.php b/mw/env/modules/mw_env_helpers.php index 5b78601..0492f59 100644 --- a/mw/env/modules/mw_env_helpers.php +++ b/mw/env/modules/mw_env_helpers.php @@ -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( @@ -85,18 +85,20 @@ } - 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